mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
accounts/abi/bind/backend: use requested header for gas prices and gas limits (#28280)
This commit is contained in:
parent
0efc73d664
commit
57598e1825
1 changed files with 1 additions and 1 deletions
|
|
@ -674,7 +674,7 @@ func (b *SimulatedBackend) callContract(ctx context.Context, call ethereum.CallM
|
|||
}
|
||||
// Ensure message is initialized properly.
|
||||
if call.Gas == 0 {
|
||||
call.Gas = 50000000
|
||||
call.Gas = 10 * head.GasLimit
|
||||
}
|
||||
if call.Value == nil {
|
||||
call.Value = new(big.Int)
|
||||
|
|
|
|||
Loading…
Reference in a new issue