mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Removes assert on magic ABI functions during codegen.
This commit is contained in:
parent
00d81929b1
commit
c02257207b
@ -1401,6 +1401,10 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
|
||||
m_context << Instruction::DUP1 << u256(32) << Instruction::ADD;
|
||||
utils().storeStringData(contract.name());
|
||||
}
|
||||
else if (member == "encode" || member == "decode")
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
else
|
||||
solAssert(false, "Unknown magic member.");
|
||||
break;
|
||||
|
@ -0,0 +1,8 @@
|
||||
contract C {
|
||||
function f() public pure {
|
||||
abi.encode;
|
||||
abi.decode;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// f() ->
|
Loading…
Reference in New Issue
Block a user