neo-devpack-solidity 0.22.0

Production-focused Solidity-to-NeoVM compilation system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fn try_lower_storage_array_helpers(
    func: &Expression,
    args: &[Expression],
    ctx: &mut LoweringContext,
    instructions: &mut Vec<Instruction>,
) -> Option<bool> {
    // Storage array helpers: support `arr.push(value)` and `arr.pop()`.
    if let Some(result) = try_lower_storage_reference_array_helpers(func, args, ctx, instructions)
    {
        return Some(result);
    }

    if let Some(result) = try_lower_state_array_helpers(func, args, ctx, instructions) {
        return Some(result);
    }

    None
}