Instructions.end_if_instructions()

Returns an Instructions object for the 'end if' instructions.

end_if_instructions() β†’ Instructions

Query Example

from glider import *

def query():
  instructions = Instructions().end_if_instructions().exec(1)
  
  return instructions

Output Example

{
    "contract": "0xd705c24267ed3c55458160104994c55c6492dfcf"
    "contract_name": "SafeMath"
    "sol_function":
        function mul(uint256 a, uint256 b) internal pure returns (uint256) {
                if (a == 0) {
                    return 0;
                }
                uint256 c = a * b;
                require(c / a == b, "SafeMath: multiplication overflow");
                return c;
            }
    "sol_instruction":
        if (a == 0) {
                    return 0;
                }
}

Last updated