mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Additional test for msg.sig
This commit is contained in:
parent
d7ffba1504
commit
bb5364dd66
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user