From d35b57ae363b82159c1b9528e98f740d90fc01ff Mon Sep 17 00:00:00 2001 From: stellrust Date: Tue, 16 Jul 2024 18:10:45 +0900 Subject: [PATCH] chore: fix some comments (#2581) Signed-off-by: stellrust --- cmd/faucet/faucet.go | 2 +- cmd/utils/history_test.go | 2 +- signer/fourbyte/abi.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go index 6a64e174f6..4f8a6c9390 100644 --- a/cmd/faucet/faucet.go +++ b/cmd/faucet/faucet.go @@ -642,7 +642,7 @@ func (f *faucet) loop() { f.lock.RUnlock() } }() - // Wait for various events and assing to the appropriate background threads + // Wait for various events and assign to the appropriate background threads for { select { case head := <-heads: diff --git a/cmd/utils/history_test.go b/cmd/utils/history_test.go index ba206e9823..084d137a99 100644 --- a/cmd/utils/history_test.go +++ b/cmd/utils/history_test.go @@ -83,7 +83,7 @@ func TestHistoryImportAndExport(t *testing.T) { t.Fatalf("unable to initialize chain: %v", err) } if _, err := chain.InsertChain(blocks); err != nil { - t.Fatalf("error insterting chain: %v", err) + t.Fatalf("error inserting chain: %v", err) } // Make temp directory for era files. 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)