Function gear_core_processor::precharge_for_code_length
source ยท pub fn precharge_for_code_length(
block_config: &BlockConfig,
context: ContextChargedForAllocations,
actor_data: ExecutableActorData,
) -> Result<ContextChargedForCodeLength, Vec<JournalNote>>
Expand description
Charge a message for fetching the actual length of the binary code from a storage. The updated value of binary code length should be kept in standalone storage. The caller has to call this function to charge gas-counters accordingly before fetching the value.
The function also performs several additional checks:
- if an actor is executable
- if a required dispatch method is exported.