Skip to content

Commit

Permalink
clear sentense
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Nov 23, 2024
1 parent 508f940 commit f861c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonrpc/backend/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (b *JSONRPCBackend) EstimateGas(args rpctypes.TransactionArgs, blockNrOrHas
return hexutil.Uint64(0), errors.New("state overrides are not supported")
}
if args.From == nil {
return hexutil.Uint64(0), errors.New("empty from address is not allowed from the estimate gas")
return hexutil.Uint64(0), errors.New("from address cannot be empty in the estimated gas")
}

Check warning on line 25 in jsonrpc/backend/gas.go

View check run for this annotation

Codecov / codecov/patch

jsonrpc/backend/gas.go#L23-L25

Added lines #L23 - L25 were not covered by tests

if args.Nonce == nil && args.From != nil {
Expand Down

0 comments on commit f861c8e

Please sign in to comment.