diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-01-16 21:49:14 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-04-25 22:14:58 +0800 |
commit | e54a3ead16322d6ff816187ad778166271cadb01 (patch) | |
tree | af62a1db5590a25dd465e388c8c34ff28194abe6 /libevmasm/GasMeter.cpp | |
parent | f2775f82d02336ef8ec64ec391e8433448b2afd8 (diff) | |
download | dexon-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.cpp | 2 |
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. |