accounts/abi/bind/backend: use requested header for gas prices and gas limits (#28280)

This commit is contained in:
Daniel Liu 2025-01-14 10:56:15 +08:00
parent 0efc73d664
commit 57598e1825

View file

@ -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)