mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6603 from ethereum/abi-function-assertion-fix
Removes assert on magic ABI functions in code generation
This commit is contained in:
commit
1eeca84cad
@ -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