Skip to content

Commit d09229c

Browse files
committed
accounts/abi/bind: fixed typos (ethereum#28634)
* Update auth.go * Update backend.go * Update bind.go * Update bind_test.go
1 parent 3e3e357 commit d09229c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

accounts/abi/bind/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func NewTransactor(keyin io.Reader, passphrase string) (*TransactOpts, error) {
5555
}
5656

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

accounts/abi/bind/backend.go

Lines changed: 1 addition & 1 deletion
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

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

accounts/abi/bind/bind_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ var bindTests = []struct {
16291629
}
16301630
sim.Commit()
16311631
1632-
// This test the existence of the free retreiver call for view and pure functions
1632+
// This test the existence of the free retriever call for view and pure functions
16331633
if num, err := pav.PureFunc(nil); err != nil {
16341634
t.Fatalf("Failed to call anonymous field retriever: %v", err)
16351635
} else if num.Cmp(big.NewInt(42)) != 0 {

0 commit comments

Comments
 (0)