aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-03-16 22:46:04 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-16 23:42:56 +0800
commitbb5364dd66a85b287b0dc5b71bd810c7af671b0e (patch)
tree0a641ccf05f20295f2075cb8f17e819469f9a2b3
parentd7ffba150458f947c03741f1b528d45eb6c8771a (diff)
downloaddexon-solidity-bb5364dd66a85b287b0dc5b71bd810c7af671b0e.tar
dexon-solidity-bb5364dd66a85b287b0dc5b71bd810c7af671b0e.tar.gz
dexon-solidity-bb5364dd66a85b287b0dc5b71bd810c7af671b0e.tar.bz2
dexon-solidity-bb5364dd66a85b287b0dc5b71bd810c7af671b0e.tar.lz
dexon-solidity-bb5364dd66a85b287b0dc5b71bd810c7af671b0e.tar.xz
dexon-solidity-bb5364dd66a85b287b0dc5b71bd810c7af671b0e.tar.zst
dexon-solidity-bb5364dd66a85b287b0dc5b71bd810c7af671b0e.zip
Additional test for msg.sig
-rw-r--r--ExpressionCompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 07f4e94e..a9cacc65 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -647,7 +647,8 @@ void ExpressionCompiler::endVisit(MemberAccess const& _memberAccess)
else if (member == "data")
m_context << u256(0) << eth::Instruction::CALLDATASIZE;
else if (member == "sig")
- m_context << u256(0) << eth::Instruction::CALLDATALOAD << (u256(0xffffffff) << (256 - 32))<< eth::Instruction::AND;
+ m_context << u256(0) << eth::Instruction::CALLDATALOAD
+ << (u256(0xffffffff) << (256 - 32)) << eth::Instruction::AND;
else
BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Unknown magic member."));
break;