def accumulate_gas(self, global_state: GlobalState):
        """

        :param global_state:
        :return:
        """
        if not self.enable_gas:
            return global_state
        opcode = global_state.instruction["opcode"]
        min_gas, max_gas = cast(Tuple[int, int], OPCODE_GAS[opcode])
        global_state.mstate.min_gas_used += min_gas
        global_state.mstate.max_gas_used += max_gas
        return global_state
def accumulate_gas ( self , global_state : GlobalState ) : if not self . enable_gas : return global_state opcode = global_state . instruction [ "opcode" ] min_gas , max_gas = cast ( Tuple [ int , int ] , OPCODE_GAS [ opcode ] ) global_state . mstate . min_gas_used += min_gas global_state . mstate . max_gas_used += max_gas return global_state
:param global_state:
        :return: