aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-11-21 21:34:21 +0800
committerGav Wood <i@gavwood.com>2015-11-21 21:34:21 +0800
commitbff172cf656843dd0f05def1f920be3d98df9640 (patch)
tree0f2d0c5841dc487d0235f74f77a350d4196246da /test/libsolidity
parent9997aac1637727d735e1c474da6ecf9d98f072cf (diff)
downloaddexon-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.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);
}