aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/GasMeter.cpp
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-01-16 21:49:14 +0800
committerchriseth <chris@ethereum.org>2017-04-25 22:14:58 +0800
commite54a3ead16322d6ff816187ad778166271cadb01 (patch)
treeaf62a1db5590a25dd465e388c8c34ff28194abe6 /libevmasm/GasMeter.cpp
parentf2775f82d02336ef8ec64ec391e8433448b2afd8 (diff)
downloaddexon-solidity-e54a3ead16322d6ff816187ad778166271cadb01.tar.gz
dexon-solidity-e54a3ead16322d6ff816187ad778166271cadb01.tar.zst
dexon-solidity-e54a3ead16322d6ff816187ad778166271cadb01.zip
libevmasm: EIP150.a changes on SLOAD, CALL, CALLCODE, DELEGATECALL and SUICIDE
Diffstat (limited to 'libevmasm/GasMeter.cpp')
-rw-r--r--libevmasm/GasMeter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libevmasm/GasMeter.cpp b/libevmasm/GasMeter.cpp
index 5cb25a22..e4fe7701 100644
--- a/libevmasm/GasMeter.cpp
+++ b/libevmasm/GasMeter.cpp
@@ -149,6 +149,8 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item, bool _
}
break;
}
+ case Instruction::SELFDESTRUCT:
+ gas = GasCosts::selfdestructGas;
case Instruction::CREATE:
if (_includeExternalCosts)
// We assume that we do not know the target contract and thus, the consumption is infinite.