From ec222367462636aa7815f872ec55006551189e5b Mon Sep 17 00:00:00 2001 From: keienWang <42377006+keienWang@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:29:23 +0800 Subject: [PATCH] Fix the typo in the 'signer' folder and the 'cmd' folder. --- cmd/evm/README.md | 2 +- signer/core/api.go | 2 +- signer/fourbyte/abi.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/evm/README.md b/cmd/evm/README.md index 25647c18a9..de2e2bc63f 100644 --- a/cmd/evm/README.md +++ b/cmd/evm/README.md @@ -26,7 +26,7 @@ which can ### Specification -The idea is to specify the behaviour of this binary very _strict_, so that other +The idea is to specify the behaviour of this binary very _strictly_, so that other node implementors can build replicas based on their own state-machines, and the state generators can swap between a \`geth\`-based implementation and a \`parityvm\`-based implementation. diff --git a/signer/core/api.go b/signer/core/api.go index ef8c136625..a32f24cb18 100644 --- a/signer/core/api.go +++ b/signer/core/api.go @@ -631,7 +631,7 @@ func (api *SignerAPI) SignGnosisSafeTx(ctx context.Context, signerAddress common } } typedData := gnosisTx.ToTypedData() - // might aswell error early. + // might as well error early. // we are expected to sign. If our calculated hash does not match what they want, // The gnosis safetx input contains a 'safeTxHash' which is the expected safeTxHash that sighash, _, err := apitypes.TypedDataAndHash(typedData) diff --git a/signer/fourbyte/abi.go b/signer/fourbyte/abi.go index 352abc59e1..bdfbd05a1e 100644 --- a/signer/fourbyte/abi.go +++ b/signer/fourbyte/abi.go @@ -98,7 +98,7 @@ func parseCallData(calldata []byte, unescapedAbidata string) (*decodedCallData, if len(argdata)%32 != 0 { return nil, fmt.Errorf("invalid call data; length should be a multiple of 32 bytes (was %d)", len(argdata)) } - // Validate the called method and upack the call data accordingly + // Validate the called method and unpack the call data accordingly abispec, err := abi.JSON(strings.NewReader(unescapedAbidata)) if err != nil { return nil, fmt.Errorf("invalid method signature (%q): %v", unescapedAbidata, err)