Skip to content

Commit

Permalink
return error for missing from
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoyangLiu committed Sep 11, 2020
1 parent 6e67d90 commit 3e512c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args CallArgs, blockNrOrHash
)
// Use zero address if sender unspecified.
if args.From == nil {
args.From = new(common.Address)
return 0, fmt.Errorf("missing from address")
}
// Determine the highest gas limit can be used during the estimation.
if args.Gas != nil && uint64(*args.Gas) >= params.TxGas {
Expand Down

0 comments on commit 3e512c1

Please sign in to comment.