aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-08-06 07:18:21 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-08-06 07:18:21 +0800
commit17f760e2a9de0ff364654d884d827b6f1d36c2ba (patch)
tree87c15d7803c72d34ff09018a836e452b8b647b31 /libsolidity
parent3c93a22d478b9439d6e226ad7954fe571117f439 (diff)
downloaddexon-solidity-17f760e2a9de0ff364654d884d827b6f1d36c2ba.tar
dexon-solidity-17f760e2a9de0ff364654d884d827b6f1d36c2ba.tar.gz
dexon-solidity-17f760e2a9de0ff364654d884d827b6f1d36c2ba.tar.bz2
dexon-solidity-17f760e2a9de0ff364654d884d827b6f1d36c2ba.tar.lz
dexon-solidity-17f760e2a9de0ff364654d884d827b6f1d36c2ba.tar.xz
dexon-solidity-17f760e2a9de0ff364654d884d827b6f1d36c2ba.tar.zst
dexon-solidity-17f760e2a9de0ff364654d884d827b6f1d36c2ba.zip
Fix identity precompile gas calculation
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/CompilerUtils.cpp4
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;