chore: fix some comments (#2581)

Signed-off-by: stellrust <gohunter@foxmail.com>
This commit is contained in:
stellrust 2024-07-16 18:10:45 +09:00 committed by GitHub
parent 21fc2d3ac4
commit d35b57ae36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

@ -642,7 +642,7 @@ func (f *faucet) loop() {
f.lock.RUnlock() 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 { for {
select { select {
case head := <-heads: case head := <-heads:

@ -83,7 +83,7 @@ func TestHistoryImportAndExport(t *testing.T) {
t.Fatalf("unable to initialize chain: %v", err) t.Fatalf("unable to initialize chain: %v", err)
} }
if _, err := chain.InsertChain(blocks); err != nil { 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. // Make temp directory for era files.

@ -98,7 +98,7 @@ func parseCallData(calldata []byte, unescapedAbidata string) (*decodedCallData,
if len(argdata)%32 != 0 { if len(argdata)%32 != 0 {
return nil, fmt.Errorf("invalid call data; length should be a multiple of 32 bytes (was %d)", len(argdata)) 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)) abispec, err := abi.JSON(strings.NewReader(unescapedAbidata))
if err != nil { if err != nil {
return nil, fmt.Errorf("invalid method signature (%q): %v", unescapedAbidata, err) return nil, fmt.Errorf("invalid method signature (%q): %v", unescapedAbidata, err)