Skip to content

Commit 0f74aad

Browse files
nnsW3fjl
andauthored
all: fix typos in comments (#28662)
Co-authored-by: Felix Lange <[email protected]>
1 parent b2ced97 commit 0f74aad

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

accounts/abi/abi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ var revertSelector = crypto.Keccak256([]byte("Error(string)"))[:4]
251251
var panicSelector = crypto.Keccak256([]byte("Panic(uint256)"))[:4]
252252

253253
// panicReasons map is for readable panic codes
254-
// see this linkage for the deails
254+
// see this linkage for the details
255255
// https://docs.soliditylang.org/en/v0.8.21/control-structures.html#panic-via-assert-and-error-via-require
256256
// the reason string list is copied from ether.js
257257
// https://github.com/ethers-io/ethers.js/blob/fa3a883ff7c88611ce766f58bdd4b8ac90814470/src.ts/abi/interface.ts#L207-L218

accounts/abi/bind/auth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func NewTransactorWithChainID(keyin io.Reader, passphrase string, chainID *big.I
117117
}
118118

119119
// NewKeyStoreTransactorWithChainID is a utility method to easily create a transaction signer from
120-
// an decrypted key from a keystore.
120+
// a decrypted key from a keystore.
121121
func NewKeyStoreTransactorWithChainID(keystore *keystore.KeyStore, account accounts.Account, chainID *big.Int) (*TransactOpts, error) {
122122
if chainID == nil {
123123
return nil, ErrNoChainID

accounts/abi/bind/base.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...in
238238
if err != nil {
239239
return nil, err
240240
}
241-
// todo(rjl493456442) check the method is payable or not,
241+
// todo(rjl493456442) check whether the method is payable or not,
242242
// reject invalid transaction at the first place
243243
return c.transact(opts, &c.address, input)
244244
}
245245

246246
// RawTransact initiates a transaction with the given raw calldata as the input.
247247
// It's usually used to initiate transactions for invoking **Fallback** function.
248248
func (c *BoundContract) RawTransact(opts *TransactOpts, calldata []byte) (*types.Transaction, error) {
249-
// todo(rjl493456442) check the method is payable or not,
249+
// todo(rjl493456442) check whether the method is payable or not,
250250
// reject invalid transaction at the first place
251251
return c.transact(opts, &c.address, calldata)
252252
}

accounts/abi/bind/bind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func isKeyWord(arg string) bool {
7979

8080
// Bind generates a Go wrapper around a contract ABI. This wrapper isn't meant
8181
// to be used as is in client code, but rather as an intermediate struct which
82-
// enforces compile time type safety and naming convention opposed to having to
82+
// enforces compile time type safety and naming convention as opposed to having to
8383
// manually maintain hard coded strings that break on runtime.
8484
func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]string, pkg string, lang Lang, libs map[string]string, aliases map[string]string) (string, error) {
8585
var (

accounts/abi/topics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func MakeTopics(query ...[]interface{}) ([][]common.Hash, error) {
7575
copy(topic[:], hash[:])
7676

7777
default:
78-
// todo(rjl493456442) according solidity documentation, indexed event
78+
// todo(rjl493456442) according to solidity documentation, indexed event
7979
// parameters that are not value types i.e. arrays and structs are not
8080
// stored directly but instead a keccak256-hash of an encoding is stored.
8181
//

cmd/clef/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Clef can be used to sign transactions and data and is meant as a(n eventual) replacement for Geth's account management. This allows DApps to not depend on Geth's account management. When a DApp wants to sign data (or a transaction), it can send the content to Clef, which will then provide the user with context and asks for permission to sign the content. If the users grants the signing request, Clef will send the signature back to the DApp.
44

5-
This setup allows a DApp to connect to a remote Ethereum node and send transactions that are locally signed. This can help in situations when a DApp is connected to an untrusted remote Ethereum node, because a local one is not available, not synchronised with the chain, or is a node that has no built-in (or limited) account management.
5+
This setup allows a DApp to connect to a remote Ethereum node and send transactions that are locally signed. This can help in situations when a DApp is connected to an untrusted remote Ethereum node, because a local one is not available, not synchronized with the chain, or is a node that has no built-in (or limited) account management.
66

77
Clef can run as a daemon on the same machine, off a usb-stick like [USB armory](https://inversepath.com/usbarmory), or even a separate VM in a [QubesOS](https://www.qubes-os.org/) type setup.
88

0 commit comments

Comments
 (0)