diff options
author | chriseth <chris@ethereum.org> | 2016-08-09 01:15:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-09 01:15:03 +0800 |
commit | 539afbeea32fb646e7d0979ee4fb949d914e89bc (patch) | |
tree | 46ac2998fb346e1ae1d24317a5ebb95c462f6df7 | |
parent | 2fcc6ec335f12def973aadd0e5a9fd6d4a2935e1 (diff) | |
parent | 17f760e2a9de0ff364654d884d827b6f1d36c2ba (diff) | |
download | dexon-solidity-539afbeea32fb646e7d0979ee4fb949d914e89bc.tar.gz dexon-solidity-539afbeea32fb646e7d0979ee4fb949d914e89bc.tar.zst dexon-solidity-539afbeea32fb646e7d0979ee4fb949d914e89bc.zip |
Merge pull request #828 from axic/identity-gas-fix
Fix identity precompile gas calculation
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index efb9b10a..d7d17b8e 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -288,8 +288,8 @@ void CompilerUtils::memoryCopy() m_context << u256(0) << u256(identityContractAddress); // compute gas costs m_context << u256(32) << Instruction::DUP5 << u256(31) << Instruction::ADD; - static unsigned c_identityGas = 3; - static unsigned c_identityWordGas = 15; + static unsigned c_identityGas = 15; + static unsigned c_identityWordGas = 3; m_context << Instruction::DIV << u256(c_identityWordGas) << Instruction::MUL; m_context << u256(c_identityGas) << Instruction::ADD; m_context << Instruction::CALL; |