Skip to content

Commit

Permalink
multi: fix typos
Browse files Browse the repository at this point in the history
GoodDaisy committed Jan 5, 2024
1 parent 76bb5ae commit 0a12bd8
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion address/address.go
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion asset/interface.go
Original file line number Diff line number Diff line change
@@ -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
@@ -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) {
2 changes: 1 addition & 1 deletion commitment/commitment_test.go
Original file line number Diff line number Diff line change
@@ -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 {
2 changes: 1 addition & 1 deletion itest/loadtest/mint_batch_test.go
Original file line number Diff line number Diff line change
@@ -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{
4 changes: 2 additions & 2 deletions proof/courier.go
Original file line number Diff line number Diff line change
@@ -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{
@@ -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)
}
4 changes: 2 additions & 2 deletions rpcserver.go
Original file line number Diff line number Diff line change
@@ -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) {
@@ -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")
2 changes: 1 addition & 1 deletion tapdb/assets_store_test.go
Original file line number Diff line number Diff line change
@@ -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) {
2 changes: 1 addition & 1 deletion tapgarden/custodian_test.go
Original file line number Diff line number Diff line change
@@ -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

4 changes: 2 additions & 2 deletions tapgarden/planter_test.go
Original file line number Diff line number Diff line change
@@ -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)
@@ -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++
2 changes: 1 addition & 1 deletion tappsbt/decode.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 0a12bd8

Please sign in to comment.