aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/SemanticInformation.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-10-16 19:28:44 +0800
committerchriseth <chris@ethereum.org>2017-10-16 19:28:44 +0800
commit082e7b6a9ea5f4651bed0b2ab037dbba05af26eb (patch)
treea8e959302f668e9e7ad427506ed9886ba9fc3a70 /libevmasm/SemanticInformation.cpp
parentdbc8655b363d4023c987ccfea2db371cc0213200 (diff)
downloaddexon-solidity-082e7b6a9ea5f4651bed0b2ab037dbba05af26eb.tar.gz
dexon-solidity-082e7b6a9ea5f4651bed0b2ab037dbba05af26eb.tar.zst
dexon-solidity-082e7b6a9ea5f4651bed0b2ab037dbba05af26eb.zip
Allow ``gas`` in view functions.
Diffstat (limited to 'libevmasm/SemanticInformation.cpp')
-rw-r--r--libevmasm/SemanticInformation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/SemanticInformation.cpp b/libevmasm/SemanticInformation.cpp
index 83cfe2c6..61a6ccda 100644
--- a/libevmasm/SemanticInformation.cpp
+++ b/libevmasm/SemanticInformation.cpp
@@ -198,6 +198,7 @@ bool SemanticInformation::invalidInPureFunctions(Instruction _instruction)
case Instruction::ORIGIN:
case Instruction::CALLER:
case Instruction::CALLVALUE:
+ case Instruction::GAS:
case Instruction::GASPRICE:
case Instruction::EXTCODESIZE:
case Instruction::EXTCODECOPY:
@@ -223,7 +224,6 @@ bool SemanticInformation::invalidInViewFunctions(Instruction _instruction)
case Instruction::SSTORE:
case Instruction::JUMP:
case Instruction::JUMPI:
- case Instruction::GAS:
case Instruction::LOG0:
case Instruction::LOG1:
case Instruction::LOG2: