aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-11-23 19:42:28 +0800
committerGav Wood <g@ethdev.com>2015-11-23 19:42:28 +0800
commit2554d6104a491e586ecad9cf7fe31949dc46e968 (patch)
tree3a3639713c76c95f33f432bb00bbba2842682557 /test/libsolidity
parent58110b27c14962b6a46bc3b09e8ea1a75a4087e7 (diff)
parentbff172cf656843dd0f05def1f920be3d98df9640 (diff)
downloaddexon-solidity-2554d6104a491e586ecad9cf7fe31949dc46e968.tar.gz
dexon-solidity-2554d6104a491e586ecad9cf7fe31949dc46e968.tar.zst
dexon-solidity-2554d6104a491e586ecad9cf7fe31949dc46e968.zip
Merge pull request #236 from ethereum/hot_gav
Fix up for new API from EIP-1.1.
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/GasMeter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/libsolidity/GasMeter.cpp b/test/libsolidity/GasMeter.cpp
index b5cee01e..25df9e4d 100644
--- a/test/libsolidity/GasMeter.cpp
+++ b/test/libsolidity/GasMeter.cpp
@@ -59,12 +59,14 @@ public:
void testCreationTimeGas(string const& _sourceCode)
{
+ EVMSchedule schedule;// TODO: make relevant to supposed context.
+
compileAndRun(_sourceCode);
auto state = make_shared<KnownState>();
PathGasMeter meter(*m_compiler.assemblyItems());
GasMeter::GasConsumption gas = meter.estimateMax(0, state);
u256 bytecodeSize(m_compiler.runtimeObject().bytecode.size());
- gas += bytecodeSize * c_createDataGas;
+ gas += bytecodeSize * schedule.createDataGas;
BOOST_REQUIRE(!gas.isInfinite);
BOOST_CHECK(gas.value == m_gasUsed);
}