Skip to main content

expansion_cost

Function expansion_cost 

Source
pub fn expansion_cost(
    new_memory_size: usize,
    current_memory_size: usize,
) -> Result<u64, VMError>
Expand description

When a memory expansion is triggered, only the additional bytes of memory must be paid for.