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 /libsolidity/codegen/Compiler.cpp | |
parent | 9997aac1637727d735e1c474da6ecf9d98f072cf (diff) | |
download | dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.tar dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.tar.gz dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.tar.bz2 dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.tar.lz dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.tar.xz dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.tar.zst dexon-solidity-bff172cf656843dd0f05def1f920be3d98df9640.zip |
Fix up for new API from EIP-1.1.
Diffstat (limited to 'libsolidity/codegen/Compiler.cpp')
-rw-r--r-- | libsolidity/codegen/Compiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/codegen/Compiler.cpp b/libsolidity/codegen/Compiler.cpp index 5daa37de..055e607f 100644 --- a/libsolidity/codegen/Compiler.cpp +++ b/libsolidity/codegen/Compiler.cpp @@ -24,12 +24,11 @@ #include <algorithm> #include <boost/range/adaptor/reversed.hpp> #include <libevmcore/Instruction.h> +#include <libethcore/ChainOperationParams.h> #include <libevmasm/Assembly.h> -#include <libevmcore/Params.h> #include <libsolidity/ast/AST.h> #include <libsolidity/codegen/ExpressionCompiler.h> #include <libsolidity/codegen/CompilerUtils.h> - using namespace std; using namespace dev; using namespace dev::solidity; @@ -760,6 +759,7 @@ void Compiler::compileExpression(Expression const& _expression, TypePointer cons eth::Assembly Compiler::cloneRuntime() { + eth::EVMSchedule schedule; eth::Assembly a; a << eth::Instruction::CALLDATASIZE; a << u256(0) << eth::Instruction::DUP1 << eth::Instruction::CALLDATACOPY; @@ -771,7 +771,7 @@ eth::Assembly Compiler::cloneRuntime() // this is the address which has to be substituted by the linker. //@todo implement as special "marker" AssemblyItem. a << u256("0xcafecafecafecafecafecafecafecafecafecafe"); - a << u256(eth::c_callGas + eth::c_callValueTransferGas + 10) << eth::Instruction::GAS << eth::Instruction::SUB; + a << u256(schedule.callGas + schedule.callValueTransferGas + 10) << eth::Instruction::GAS << eth::Instruction::SUB; a << eth::Instruction::CALLCODE; //Propagate error condition (if CALLCODE pushes 0 on stack). a << eth::Instruction::ISZERO; |