From bff172cf656843dd0f05def1f920be3d98df9640 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 21 Nov 2015 14:34:21 +0100 Subject: Fix up for new API from EIP-1.1. --- test/libsolidity/GasMeter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/libsolidity') 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(); 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); } -- cgit