accounts: fix typos in comments (#21118)

This commit is contained in:
Daniel Liu 2025-01-14 10:56:11 +08:00
parent e28727e2c9
commit afc814b00d
6 changed files with 6 additions and 6 deletions

View file

@ -53,7 +53,7 @@ type TransactOpts struct {
Nonce *big.Int // Nonce to use for the transaction execution (nil = use pending state) Nonce *big.Int // Nonce to use for the transaction execution (nil = use pending state)
Signer SignerFn // Method to use for signing the transaction (mandatory) Signer SignerFn // Method to use for signing the transaction (mandatory)
Value *big.Int // Funds to transfer along along the transaction (nil = 0 = no funds) Value *big.Int // Funds to transfer along the transaction (nil = 0 = no funds)
GasPrice *big.Int // Gas price to use for the transaction execution (nil = gas price oracle) GasPrice *big.Int // Gas price to use for the transaction execution (nil = gas price oracle)
GasFeeCap *big.Int // Gas fee cap to use for the 1559 transaction execution (nil = gas price oracle) GasFeeCap *big.Int // Gas fee cap to use for the 1559 transaction execution (nil = gas price oracle)
GasTipCap *big.Int // Gas priority fee cap to use for the 1559 transaction execution (nil = gas price oracle) GasTipCap *big.Int // Gas priority fee cap to use for the 1559 transaction execution (nil = gas price oracle)

View file

@ -64,7 +64,7 @@ type tmplField struct {
SolKind abi.Type // Raw abi type information SolKind abi.Type // Raw abi type information
} }
// tmplStruct is a wrapper around an abi.tuple contains a auto-generated // tmplStruct is a wrapper around an abi.tuple contains an auto-generated
// struct name. // struct name.
type tmplStruct struct { type tmplStruct struct {
Name string // Auto-generated struct name(before solidity v0.5.11) or raw name. Name string // Auto-generated struct name(before solidity v0.5.11) or raw name.

View file

@ -98,7 +98,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
typ.Elem = &embeddedType typ.Elem = &embeddedType
typ.stringKind = embeddedType.stringKind + sliced typ.stringKind = embeddedType.stringKind + sliced
} else if len(intz) == 1 { } else if len(intz) == 1 {
// is a array // is an array
typ.T = ArrayTy typ.T = ArrayTy
typ.Elem = &embeddedType typ.Elem = &embeddedType
typ.Size, err = strconv.Atoi(intz[0]) typ.Size, err = strconv.Atoi(intz[0])

View file

@ -61,7 +61,7 @@ func TestHDPathParsing(t *testing.T) {
// Weird inputs just to ensure they work // Weird inputs just to ensure they work
{" m / 44 '\n/\n 60 \n\n\t' /\n0 ' /\t\t 0", DerivationPath{0x80000000 + 44, 0x80000000 + 60, 0x80000000 + 0, 0}}, {" m / 44 '\n/\n 60 \n\n\t' /\n0 ' /\t\t 0", DerivationPath{0x80000000 + 44, 0x80000000 + 60, 0x80000000 + 0, 0}},
// Invaid derivation paths // Invalid derivation paths
{"", nil}, // Empty relative derivation path {"", nil}, // Empty relative derivation path
{"m", nil}, // Empty absolute derivation path {"m", nil}, // Empty absolute derivation path
{"m/", nil}, // Missing last derivation component {"m/", nil}, // Missing last derivation component

View file

@ -220,7 +220,7 @@ func (hub *Hub) refreshWallets() {
// Mark the reader as present // Mark the reader as present
seen[reader] = struct{}{} seen[reader] = struct{}{}
// If we alreay know about this card, skip to the next reader, otherwise clean up // If we already know about this card, skip to the next reader, otherwise clean up
if wallet, ok := hub.wallets[reader]; ok { if wallet, ok := hub.wallets[reader]; ok {
if err := wallet.ping(); err == nil { if err := wallet.ping(); err == nil {
continue continue

View file

@ -362,7 +362,7 @@ func (w *Wallet) Open(passphrase string) error {
return err return err
} }
// Pairing succeeded, fall through to PIN checks. This will of course fail, // Pairing succeeded, fall through to PIN checks. This will of course fail,
// but we can't return ErrPINNeeded directly here becase we don't know whether // but we can't return ErrPINNeeded directly here because we don't know whether
// a PIN check or a PIN reset is needed. // a PIN check or a PIN reset is needed.
passphrase = "" passphrase = ""
} }