Skip to content

Commit 99c3e79

Browse files
authored
Merge pull request #752 from GoodDaisy/main
chore: fix typos
2 parents f8843fa + 0a12bd8 commit 99c3e79

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

address/address.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func DecodeAddress(addr string, net *ChainParams) (*Tap, error) {
446446
// The HRP is everything before the found '1'.
447447
hrp := prefix[:len(prefix)-1]
448448

449-
// Ensure that the hrp we deocded matches the network we're trying to
449+
// Ensure that the hrp we decoded matches the network we're trying to
450450
// use the address on.
451451
if !IsForNet(hrp, net) {
452452
return nil, ErrMismatchedHRP

asset/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ type GenesisSigner interface {
2121
type GenesisTxBuilder interface {
2222
// BuildGenesisTx constructs a virtual transaction and prevOut that
2323
// represent the genesis state transition for a grouped asset. This
24-
// ouput is used to create a group witness for the grouped asset.
24+
// output is used to create a group witness for the grouped asset.
2525
BuildGenesisTx(newAsset *Asset) (*wire.MsgTx, *wire.TxOut, error)
2626
}

asset/mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func virtualGenesisTx(newAsset *Asset) (*wire.MsgTx, error) {
167167
type MockGroupTxBuilder struct{}
168168

169169
// BuildGenesisTx constructs a virtual transaction and prevOut that represent
170-
// the genesis state transition for a grouped asset. This ouput is used to
170+
// the genesis state transition for a grouped asset. This output is used to
171171
// create a group witness for the grouped asset.
172172
func (m *MockGroupTxBuilder) BuildGenesisTx(newAsset *Asset) (*wire.MsgTx,
173173
*wire.TxOut, error) {

commitment/commitment_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ func TestUpdateAssetCommitment(t *testing.T) {
10261026
require.Equal(t, testCase.err, err)
10271027

10281028
// Verify the number of assets in the updated AssetCommitment,
1029-
// as well as the inlcusion of an inserted asset or non-inclusion
1029+
// as well as the inclusion of an inserted asset or non-inclusion
10301030
// of a deleted asset.
10311031
if testCase.err == nil {
10321032
switch testCase.numAssets {

itest/loadtest/mint_batch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func mintTest(t *testing.T, ctx context.Context, cfg *Config) {
5050
// already are.
5151
initialGroups := itest.NumGroups(t, alice)
5252

53-
// Each asset in the batch will share a name and metdata preimage, that
53+
// Each asset in the batch will share a name and metadata preimage, that
5454
// will be updated based on the asset's index in the batch.
5555
collectibleRequestTemplate := mintrpc.MintAssetRequest{
5656
Asset: &mintrpc.MintAsset{

proof/courier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ func (c *UniverseRpcCourier) ReceiveProof(ctx context.Context,
11791179
return err
11801180
}
11811181
if err != nil {
1182-
return fmt.Errorf("error retreving proof "+
1182+
return fmt.Errorf("error retrieving proof "+
11831183
"from universe courier service: %w",
11841184
err)
11851185
}

rpcserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ func (r *rpcServer) ListBalances(ctx context.Context,
973973
}
974974
}
975975

976-
// ListTransfers lists all asset transfers managed by this deamon.
976+
// ListTransfers lists all asset transfers managed by this daemon.
977977
func (r *rpcServer) ListTransfers(ctx context.Context,
978978
_ *taprpc.ListTransfersRequest) (*taprpc.ListTransfersResponse,
979979
error) {
@@ -3400,7 +3400,7 @@ func (r *rpcServer) AssetLeafKeys(ctx context.Context,
34003400
return nil, err
34013401
}
34023402

3403-
// If the proof type wasn't speciifed, then we'll return an error as we
3403+
// If the proof type wasn't specified, then we'll return an error as we
34043404
// don't know which keys to actually fetch.
34053405
if universeID.ProofType == universe.ProofTypeUnspecified {
34063406
return nil, fmt.Errorf("proof type must be specified")

tapdb/assets_store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ func TestAssetGroupKeyUpsert(t *testing.T) {
16031603
require.Equal(t, witness, groupInfo.WitnessStack)
16041604
}
16051605

1606-
// TestFetchGroupedAssets tests that the FetchGroupedAssets query corectly
1606+
// TestFetchGroupedAssets tests that the FetchGroupedAssets query correctly
16071607
// excludes assets with nil group keys, groups assets with matching group
16081608
// keys, and returns other asset fields accurately.
16091609
func TestFetchGroupedAssets(t *testing.T) {

tapgarden/custodian_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ func TestBookAssetSyncer(t *testing.T) {
469469
// TODO(jhb): remove asset from syncer, assert that address creation
470470
// for the same asset works
471471

472-
// If the asset syncer returns an error, that should propogate up to
472+
// If the asset syncer returns an error, that should propagate up to
473473
// the address creator.
474474
h.syncer.FetchErrs = true
475475

tapgarden/planter_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ func testFinalizeBatch(t *mintingTestHarness) {
11161116
require.NoError(t, err)
11171117

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

11321132
// Finalize the pending batch to start a caretaker, and progress the
11331133
// caretaker to TX confirmation. The finalize call should report no
1134-
// error, but the caretaker should propogate the confirmation error to
1134+
// error, but the caretaker should propagate the confirmation error to
11351135
// the shared error channel.
11361136
t.finalizeBatch(&wg, respChan)
11371137
batchCount++

tappsbt/decode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ func findCustomFieldsByKeyPrefix(customFields []*customPsbtField,
428428
}
429429
}
430430

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

0 commit comments

Comments
 (0)