mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ethapi: want +(gas)
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
2d253fbdfc
commit
f599187264
1 changed files with 1 additions and 1 deletions
|
|
@ -1240,7 +1240,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr
|
||||||
if args.Value != nil {
|
if args.Value != nil {
|
||||||
value := args.Value.ToInt()
|
value := args.Value.ToInt()
|
||||||
if value.Cmp(available) >= 0 {
|
if value.Cmp(available) >= 0 {
|
||||||
return 0, fmt.Errorf("%v: address: %s, have: %v, want: %v", core.ErrInsufficientFundsForTransfer, *args.From, available, value)
|
return 0, fmt.Errorf("%v: address: %s, have: %v, want: %v+(gas)", core.ErrInsufficientFundsForTransfer, *args.From, available, value)
|
||||||
}
|
}
|
||||||
available.Sub(available, value)
|
available.Sub(available, value)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue