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
use super::*;

impl ExecutionContext {
    pub(crate) fn execute_flow_jumps(&mut self, opcode: u8) -> Result<bool, RuntimeError> {
        if self.execute_flow_jumps_unconditional(opcode)? {
            return Ok(true);
        }
        if self.execute_flow_jumps_conditional(opcode)? {
            return Ok(true);
        }
        if self.execute_flow_jumps_compare(opcode)? {
            return Ok(true);
        }

        Ok(false)
    }
}