aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-08 07:19:19 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-08 07:19:19 +0800
commit68b94275354e5715cea37ccbca18eb2a4b42704e (patch)
treee9b303c6da19c6ca580df2b00797c0ad2f47eef6
parentc55608f94b834d5286c4b638dd4daa77cf406807 (diff)
downloaddexon-solidity-68b94275354e5715cea37ccbca18eb2a4b42704e.tar
dexon-solidity-68b94275354e5715cea37ccbca18eb2a4b42704e.tar.gz
dexon-solidity-68b94275354e5715cea37ccbca18eb2a4b42704e.tar.bz2
dexon-solidity-68b94275354e5715cea37ccbca18eb2a4b42704e.tar.lz
dexon-solidity-68b94275354e5715cea37ccbca18eb2a4b42704e.tar.xz
dexon-solidity-68b94275354e5715cea37ccbca18eb2a4b42704e.tar.zst
dexon-solidity-68b94275354e5715cea37ccbca18eb2a4b42704e.zip
work in progress in testing the new function selector in the end to end tests
-rw-r--r--Compiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Compiler.cpp b/Compiler.cpp
index 83fd69f5..514e1a27 100644
--- a/Compiler.cpp
+++ b/Compiler.cpp
@@ -124,12 +124,12 @@ void Compiler::appendFunctionSelector(ContractDefinition const& _contract)
if (interfaceFunctions.size() > 4294967295) // 2 ** 32
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("More than 4294967295 public functions for contract."));
- // retrieve the first function signature hash from the calldata
- m_context << u256(1) << u256(0) << u256(2.6959947e+67) // some constants
+ // retrieve the function signature hash from the calldata
+ m_context << u256(1) << u256(0) << u256(4294967296) * u256(4294967296) * u256(4294967296) * u256(4294967296) * u256(4294967296) * u256(4294967296) * u256(4294967296)// some constants
<< eth::dupInstruction(2) << eth::Instruction::CALLDATALOAD
<< eth::Instruction::DIV;
- // stack now is: 1 0 2.6959947e+67 <funhash>
+ // stack now is: 1 0 <funhash>
for (auto it = interfaceFunctions.begin(); it != interfaceFunctions.end(); ++it)
{
callDataUnpackerEntryPoints.push_back(m_context.newTag());