pub fn precharge_for_code_length(
    block_config: &BlockConfig,
    dispatch: PrechargedDispatch,
    destination_id: ProgramId,
    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.