diff options
author | Gav Wood <i@gavwood.com> | 2015-11-19 17:19:53 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2015-11-19 17:19:53 +0800 |
commit | 938b6793f1a555d8e98e949c8fd2a6838f0d6c43 (patch) | |
tree | 2fe8b0ccf52e30d0bf95fef32fd2b55f3c744f98 /libsolidity/codegen | |
parent | ad249e5787862c900b6c9fa780f00fa034191dd2 (diff) | |
download | dexon-solidity-938b6793f1a555d8e98e949c8fd2a6838f0d6c43.tar.gz dexon-solidity-938b6793f1a555d8e98e949c8fd2a6838f0d6c43.tar.zst dexon-solidity-938b6793f1a555d8e98e949c8fd2a6838f0d6c43.zip |
Minor API change - must provide SealEngine to Executive now.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index dd38ef97..6d82e94b 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -276,8 +276,10 @@ void CompilerUtils::memoryCopy() m_context << u256(0) << u256(identityContractAddress); // compute gas costs m_context << u256(32) << eth::Instruction::DUP5 << u256(31) << eth::Instruction::ADD; - m_context << eth::Instruction::DIV << u256(eth::c_identityWordGas) << eth::Instruction::MUL; - m_context << u256(eth::c_identityGas) << eth::Instruction::ADD; + static unsigned c_identityGas = 3; + static unsigned c_identityWordGas = 15; + m_context << eth::Instruction::DIV << u256(c_identityWordGas) << eth::Instruction::MUL; + m_context << u256(c_identityGas) << eth::Instruction::ADD; m_context << eth::Instruction::CALL; m_context << eth::Instruction::POP; // ignore return value } |