aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2017-01-16 21:57:49 +0800
committerchriseth <chris@ethereum.org>2017-04-25 22:14:58 +0800
commit4e24639e396a6ed540b1382d915903c1334c1b66 (patch)
tree3f14eea406eeff1aebbf6603ddde3b8c290aa3cd
parente54a3ead16322d6ff816187ad778166271cadb01 (diff)
downloaddexon-solidity-4e24639e396a6ed540b1382d915903c1334c1b66.tar
dexon-solidity-4e24639e396a6ed540b1382d915903c1334c1b66.tar.gz
dexon-solidity-4e24639e396a6ed540b1382d915903c1334c1b66.tar.bz2
dexon-solidity-4e24639e396a6ed540b1382d915903c1334c1b66.tar.lz
dexon-solidity-4e24639e396a6ed540b1382d915903c1334c1b66.tar.xz
dexon-solidity-4e24639e396a6ed540b1382d915903c1334c1b66.tar.zst
dexon-solidity-4e24639e396a6ed540b1382d915903c1334c1b66.zip
libevmasm: EIP150.c gas change
-rw-r--r--libevmasm/GasMeter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libevmasm/GasMeter.cpp b/libevmasm/GasMeter.cpp
index e4fe7701..a5f0da1b 100644
--- a/libevmasm/GasMeter.cpp
+++ b/libevmasm/GasMeter.cpp
@@ -151,6 +151,7 @@ GasMeter::GasConsumption GasMeter::estimateMax(AssemblyItem const& _item, bool _
}
case Instruction::SELFDESTRUCT:
gas = GasCosts::selfdestructGas;
+ gas += GasCosts::callNewAccountGas; // We very rarely know whether the address exists.
case Instruction::CREATE:
if (_includeExternalCosts)
// We assume that we do not know the target contract and thus, the consumption is infinite.