Skip to content

Commit

Permalink
Merge pull request lightninglabs#752 from GoodDaisy/main
Browse files Browse the repository at this point in the history
chore: fix typos
  • Loading branch information
guggero authored Jan 5, 2024
2 parents f8843fa + 0a12bd8 commit 99c3e79
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
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
2 changes: 1 addition & 1 deletion proof/courier.go
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,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 @@ -3400,7 +3400,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 @@ -469,7 +469,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

0 comments on commit 99c3e79

Please sign in to comment.