pub fn calc_call_static_gas(spec_id: SpecId, has_transfer: bool) -> u64
Expand description
Calculate static gas for the call
Gas depends on:
- Spec. For berlin hardfork only warm gas
WARM_STORAGE_READ_COST
is calculated. - If there is transfer value. additional gas of
CALLVALUE
is added.