2021-04-29 23:09:36 +00:00
|
|
|
contract ClientReceipt {
|
2021-05-19 04:19:16 +00:00
|
|
|
event Withdraw(uint _value, string owner);
|
2021-04-29 23:09:36 +00:00
|
|
|
event Deposit(uint256 indexed _from, bytes32 indexed _id, uint _value) anonymous;
|
|
|
|
function deposit(bytes32 _id) public payable {
|
2021-05-19 04:19:16 +00:00
|
|
|
emit Deposit(0x5ddaa77ac5bda319ba947e31bee594711f39ed1b20d079d438dbad5ed729fb30, _id, msg.value); // 0x5ddaa77a -> 'Withdraw(uint256,string)'
|
2021-04-29 23:09:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
|
|
|
// ----
|
|
|
|
// deposit(bytes32), 18 wei: 0x1234 ->
|
2021-05-19 04:19:16 +00:00
|
|
|
// ~ emit Withdraw(uint256,string): #0x1234, 0x12
|