Skip to main content

precompile_call_gas

Function precompile_call_gas 

Source
pub(crate) fn precompile_call_gas(gas_limit: u64, sends_value: bool) -> u64
Expand description

Returns the most gas a gasleft() call gives a precompile in a transaction with gas_limit gas: 63/64 of the gas left (EIP-150), plus the value transfer stipend when it sends value.