mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ethapi/api: error wrap
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
f599187264
commit
3f8a28f71a
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 {
|
||||
value := args.Value.ToInt()
|
||||
if value.Cmp(available) >= 0 {
|
||||
return 0, fmt.Errorf("%v: address: %s, have: %v, want: %v+(gas)", core.ErrInsufficientFundsForTransfer, *args.From, available, value)
|
||||
return 0, fmt.Errorf("%w: address: %s, have: %v, want: %v+(gas)", core.ErrInsufficientFunds, *args.From, available, value)
|
||||
}
|
||||
available.Sub(available, value)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue