Function revm::interpreter::gas::call_cost
source ยท pub const fn call_cost(
spec_id: SpecId,
transfers_value: bool,
is_cold: bool,
new_account_accounting: bool
) -> u64
Expand description
Calculate call gas cost for the call instruction.
There is three types of gas.
- Account access gas. after berlin it can be cold or warm.
- Transfer value gas. If value is transferred and balance of target account is updated.
- If account is not existing and needs to be created. After Spurious dragon this is only accounted if value is transferred.