solidity/test/libsolidity/semanticTests/events/event_anonymous_with_signature_collision2.sol
2021-05-27 23:21:55 -05:00

13 lines
495 B
Solidity

contract ClientReceipt {
event Withdraw(uint _value, string owner);
event Deposit(uint256 indexed _from, bytes32 indexed _id, uint _value) anonymous;
function deposit(bytes32 _id) public payable {
emit Deposit(0x5ddaa77ac5bda319ba947e31bee594711f39ed1b20d079d438dbad5ed729fb30, _id, msg.value); // 0x5ddaa77a -> 'Withdraw(uint256,string)'
}
}
// ====
// compileViaYul: also
// ----
// deposit(bytes32), 18 wei: 0x1234 ->
// ~ emit Withdraw(uint256,string): #0x1234, 0x12