Skip to content

Commit

Permalink
fix typo in eth_call error (#7084)
Browse files Browse the repository at this point in the history
Spotted this typo when poking at Cloudflare's public gateway and mapped
it back here 🙈
  • Loading branch information
holic authored Mar 13, 2023
1 parent dbf1225 commit ec071b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/rpcdaemon/commands/eth_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (api *APIImpl) Call(ctx context.Context, args ethapi2.CallArgs, blockNrOrHa
}

if len(result.ReturnData) > api.ReturnDataLimit {
return nil, fmt.Errorf("call retuned result on length %d exceeding limit %d", len(result.ReturnData), api.ReturnDataLimit)
return nil, fmt.Errorf("call returned result on length %d exceeding limit %d", len(result.ReturnData), api.ReturnDataLimit)
}

// If the result contains a revert reason, try to unpack and return it.
Expand Down

0 comments on commit ec071b4

Please sign in to comment.