Skip to content

chore: fix typos #752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion address/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func DecodeAddress(addr string, net *ChainParams) (*Tap, error) {
// The HRP is everything before the found '1'.
hrp := prefix[:len(prefix)-1]

// Ensure that the hrp we deocded matches the network we're trying to
// Ensure that the hrp we decoded matches the network we're trying to
// use the address on.
if !IsForNet(hrp, net) {
return nil, ErrMismatchedHRP
Expand Down
2 changes: 1 addition & 1 deletion asset/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ type GenesisSigner interface {
type GenesisTxBuilder interface {
// BuildGenesisTx constructs a virtual transaction and prevOut that
// represent the genesis state transition for a grouped asset. This
// ouput is used to create a group witness for the grouped asset.
// output is used to create a group witness for the grouped asset.
BuildGenesisTx(newAsset *Asset) (*wire.MsgTx, *wire.TxOut, error)
}
2 changes: 1 addition & 1 deletion asset/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func virtualGenesisTx(newAsset *Asset) (*wire.MsgTx, error) {
type MockGroupTxBuilder struct{}

// BuildGenesisTx constructs a virtual transaction and prevOut that represent
// the genesis state transition for a grouped asset. This ouput is used to
// the genesis state transition for a grouped asset. This output is used to
// create a group witness for the grouped asset.
func (m *MockGroupTxBuilder) BuildGenesisTx(newAsset *Asset) (*wire.MsgTx,
*wire.TxOut, error) {
Expand Down
2 changes: 1 addition & 1 deletion commitment/commitment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ func TestUpdateAssetCommitment(t *testing.T) {
require.Equal(t, testCase.err, err)

// Verify the number of assets in the updated AssetCommitment,
// as well as the inlcusion of an inserted asset or non-inclusion
// as well as the inclusion of an inserted asset or non-inclusion
// of a deleted asset.
if testCase.err == nil {
switch testCase.numAssets {
Expand Down
2 changes: 1 addition & 1 deletion itest/loadtest/mint_batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func mintTest(t *testing.T, ctx context.Context, cfg *Config) {
// already are.
initialGroups := itest.NumGroups(t, alice)

// Each asset in the batch will share a name and metdata preimage, that
// Each asset in the batch will share a name and metadata preimage, that
// will be updated based on the asset's index in the batch.
collectibleRequestTemplate := mintrpc.MintAssetRequest{
Asset: &mintrpc.MintAsset{
Expand Down
4 changes: 2 additions & 2 deletions proof/courier.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (h *HashMailBox) RecvAck(ctx context.Context, sid streamID) error {
return fmt.Errorf("expected ack, got %x", msg.Msg)
}

// CleanUp atempts to tear down the mailbox as specified by the passed sid.
// CleanUp attempts to tear down the mailbox as specified by the passed sid.
func (h *HashMailBox) CleanUp(ctx context.Context, sid streamID) error {
streamAuth := &hashmailrpc.CipherBoxAuth{
Desc: &hashmailrpc.CipherBoxDesc{
Expand Down Expand Up @@ -1230,7 +1230,7 @@ func (c *UniverseRpcCourier) ReceiveProof(ctx context.Context,
return err
}
if err != nil {
return fmt.Errorf("error retreving proof "+
return fmt.Errorf("error retrieving proof "+
"from universe courier service: %w",
err)
}
Expand Down
4 changes: 2 additions & 2 deletions rpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -973,7 +973,7 @@ func (r *rpcServer) ListBalances(ctx context.Context,
}
}

// ListTransfers lists all asset transfers managed by this deamon.
// ListTransfers lists all asset transfers managed by this daemon.
func (r *rpcServer) ListTransfers(ctx context.Context,
_ *taprpc.ListTransfersRequest) (*taprpc.ListTransfersResponse,
error) {
Expand Down Expand Up @@ -3407,7 +3407,7 @@ func (r *rpcServer) AssetLeafKeys(ctx context.Context,
return nil, err
}

// If the proof type wasn't speciifed, then we'll return an error as we
// If the proof type wasn't specified, then we'll return an error as we
// don't know which keys to actually fetch.
if universeID.ProofType == universe.ProofTypeUnspecified {
return nil, fmt.Errorf("proof type must be specified")
Expand Down
2 changes: 1 addition & 1 deletion tapdb/assets_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ func TestAssetGroupKeyUpsert(t *testing.T) {
require.Equal(t, witness, groupInfo.WitnessStack)
}

// TestFetchGroupedAssets tests that the FetchGroupedAssets query corectly
// TestFetchGroupedAssets tests that the FetchGroupedAssets query correctly
// excludes assets with nil group keys, groups assets with matching group
// keys, and returns other asset fields accurately.
func TestFetchGroupedAssets(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tapgarden/custodian_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func TestBookAssetSyncer(t *testing.T) {
// TODO(jhb): remove asset from syncer, assert that address creation
// for the same asset works

// If the asset syncer returns an error, that should propogate up to
// If the asset syncer returns an error, that should propagate up to
// the address creator.
h.syncer.FetchErrs = true

Expand Down
4 changes: 2 additions & 2 deletions tapgarden/planter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ func testFinalizeBatch(t *mintingTestHarness) {
require.NoError(t, err)

// If the caretaker failed, there should be no active caretakers nor
// pending batch. The caretaker error should be propogated to the caller
// pending batch. The caretaker error should be propagated to the caller
// of finalize.
t.assertNoPendingBatch()
t.assertNumCaretakersActive(caretakerCount)
Expand All @@ -1131,7 +1131,7 @@ func testFinalizeBatch(t *mintingTestHarness) {

// Finalize the pending batch to start a caretaker, and progress the
// caretaker to TX confirmation. The finalize call should report no
// error, but the caretaker should propogate the confirmation error to
// error, but the caretaker should propagate the confirmation error to
// the shared error channel.
t.finalizeBatch(&wg, respChan)
batchCount++
Expand Down
2 changes: 1 addition & 1 deletion tappsbt/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ func findCustomFieldsByKeyPrefix(customFields []*customPsbtField,
}
}

return nil, fmt.Errorf("%w: key %x not found in list of unkonwns",
return nil, fmt.Errorf("%w: key %x not found in list of unknowns",
ErrKeyNotFound, keyPrefix)
}

Expand Down