Skip to content

Commit f04e5bd

Browse files
authored
accounts/abi/bind: fixed typos (#28634)
* Update auth.go * Update backend.go * Update bind.go * Update bind_test.go
1 parent 6e488c2 commit f04e5bd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

accounts/abi/bind/auth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error) {
5656
}
5757

5858
// NewKeyStoreTransactor is a utility method to easily create a transaction signer from
59-
// an decrypted key from a keystore.
59+
// a decrypted key from a keystore.
6060
//
6161
// Deprecated: Use NewKeyStoreTransactorWithChainID instead.
6262
func NewKeyStoreTransactor(keystore *keystore.KeyStore, account accounts.Account) (*TransactOpts, error) {

accounts/abi/bind/backend.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type BlockHashContractCaller interface {
7575
// CodeAtHash returns the code of the given account in the state at the specified block hash.
7676
CodeAtHash(ctx context.Context, contract common.Address, blockHash common.Hash) ([]byte, error)
7777

78-
// CallContractAtHash executes an Ethereum contract all against the state at the specified block hash.
78+
// CallContractAtHash executes an Ethereum contract call against the state at the specified block hash.
7979
CallContractAtHash(ctx context.Context, call ethereum.CallMsg, blockHash common.Hash) ([]byte, error)
8080
}
8181

accounts/abi/bind/bind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ func bindTopicTypeGo(kind abi.Type, structs map[string]*tmplStruct) string {
363363
// parameters that are not value types i.e. arrays and structs are not
364364
// stored directly but instead a keccak256-hash of an encoding is stored.
365365
//
366-
// We only convert stringS and bytes to hash, still need to deal with
366+
// We only convert strings and bytes to hash, still need to deal with
367367
// array(both fixed-size and dynamic-size) and struct.
368368
if bound == "string" || bound == "[]byte" {
369369
bound = "common.Hash"

accounts/abi/bind/bind_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ var bindTests = []struct {
16771677
}
16781678
sim.Commit()
16791679
1680-
// This test the existence of the free retreiver call for view and pure functions
1680+
// This test the existence of the free retriever call for view and pure functions
16811681
if num, err := pav.PureFunc(nil); err != nil {
16821682
t.Fatalf("Failed to call anonymous field retriever: %v", err)
16831683
} else if num.Cmp(big.NewInt(42)) != 0 {

0 commit comments

Comments
 (0)