mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: set tx gas limit not block gas limit (#5257)
This commit is contained in:
@ -231,7 +231,7 @@ where
|
||||
|
||||
// if the provided gas limit is less than computed cap, use that
|
||||
let gas_limit = std::cmp::min(U256::from(env.tx.gas_limit), highest_gas_limit);
|
||||
env.block.gas_limit = gas_limit;
|
||||
env.tx.gas_limit = gas_limit.saturating_to();
|
||||
|
||||
trace!(target: "rpc::eth::estimate", ?env, "Starting gas estimation");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user