diff options
author | Gav Wood <i@gavwood.com> | 2015-11-21 21:34:21 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-11-21 21:34:21 +0800 |
commit | bff172cf656843dd0f05def1f920be3d98df9640 (patch) | |
tree | 0f2d0c5841dc487d0235f74f77a350d4196246da /test/libsolidity | |
parent | 9997aac1637727d735e1c474da6ecf9d98f072cf (diff) | |
download | dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.tar.gz dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.tar.zst dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.zip |
Fix up for new API from EIP-1.1.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/GasMeter.cpp | 4 |
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); } |