@@ -2,17 +2,23 @@ contract ClientReceipt {
22 event A (address _from , bytes32 _id , uint _value );
33 event B (address _from , bytes32 _id , uint indexed _value ) anonymous ;
44 event C (address _from , bytes32 indexed _id , uint _value );
5- function deposit (bytes32 _id ) public payable {
5+ function deposit (bytes32 _id ) public payable returns ( uint256 ) {
66 emit A (msg .sender , _id, msg .value );
77 emit B (msg .sender , _id, msg .value );
88 emit C (msg .sender , _id, msg .value );
9+
10+ return msg .value ;
911 }
1012}
1113
1214// ====
1315// compileViaYul: false
1416// ----
15- // deposit(bytes32), 18 wei: 0x1234 ->
16- // logs.expectEvent(uint256,string): 0, "A(address,bytes32,uint256)" -> 0x1212121212121212121212121212120000000012, 0x1234, 0x12
17- // logs.expectEvent(uint256,string): 1, "" -> 0x12, 0x1212121212121212121212121212120000000012, 0x1234
18- // logs.expectEvent(uint256,string): 2, "C(address,bytes32,uint256)" -> 0x1234, 0x1212121212121212121212121212120000000012, 0x12
17+ // deposit(bytes32), 28 wei: 0x1234 -> 0x1c
18+ // logs.expectEvent(uint256,string): 0, "A(address,bytes32,uint256)" -> 0x1212121212121212121212121212120000000012, 0x1234, 0x1c
19+ // logs.expectEvent(uint256,string): 1, "" -> 0x1c, 0x1212121212121212121212121212120000000012, 0x1234
20+ // logs.expectEvent(uint256,string): 2, "C(address,bytes32,uint256)" -> 0x1234, 0x1212121212121212121212121212120000000012, 0x1c
21+ // deposit(bytes32), 23 wei: 0x1234 -> 0x17
22+ // logs.expectEvent(uint256,string): 0, "A(address,bytes32,uint256)" -> 0x1212121212121212121212121212120000000012, 0x1234, 0x17
23+ // logs.expectEvent(uint256,string): 1, "" -> 0x17, 0x1212121212121212121212121212120000000012, 0x1234
24+ // logs.expectEvent(uint256,string): 2, "C(address,bytes32,uint256)" -> 0x1234, 0x1212121212121212121212121212120000000012, 0x17
0 commit comments