Skip to content

Commit

Permalink
Fix gas (#1633)
Browse files Browse the repository at this point in the history
  • Loading branch information
feliam authored and Brad Larsen committed Mar 16, 2020
1 parent 0d564ee commit 0bb7635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manticore/platforms/evm.py
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ def constraints(self, constraints):

@property
def gas(self):
return self._gas
return Operators.EXTRACT(self._gas, 0, 256)

def __getstate__(self):
state = super().__getstate__()
Expand Down Expand Up @@ -1934,7 +1934,7 @@ def MSIZE(self):
def GAS(self):
"""Get the amount of available gas, including the corresponding reduction the amount of available gas"""
# fixme calculate gas consumption
return Operators.EXTRACT(self._gas, 0, 256)
return self.gas

def JUMPDEST(self):
"""Mark a valid destination for jumps"""
Expand Down

0 comments on commit 0bb7635

Please sign in to comment.