diff options
author | chriseth <chris@ethereum.org> | 2017-10-16 19:28:44 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-10-16 19:28:44 +0800 |
commit | 082e7b6a9ea5f4651bed0b2ab037dbba05af26eb (patch) | |
tree | a8e959302f668e9e7ad427506ed9886ba9fc3a70 /libevmasm/SemanticInformation.cpp | |
parent | dbc8655b363d4023c987ccfea2db371cc0213200 (diff) | |
download | dexon-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.cpp | 2 |
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: |