@@ -26,7 +26,8 @@ contract PythLazerTest is Test {
26
26
address trustedSigner = 0xEfEf56cD66896f6799A90A4e4d512C330c094e44 ;
27
27
vm.prank (address (1 ));
28
28
pythLazer.updateTrustedSigner (trustedSigner, 3000000000000000 );
29
- bytes memory update = hex "2a22999a577d3cc0202197939d736bc0dcf71b9dde7b9470e4d16fa8e2120c0787a1c0d744d0c39cc372af4d1ecf2d09e84160ca905f3f597d20e2eec144a446a0459ad600001c93c7d3750006240af373971c01010000000201000000000005f5e100 " ;
29
+ bytes
30
+ memory update = hex "2a22999a577d3cc0202197939d736bc0dcf71b9dde7b9470e4d16fa8e2120c0787a1c0d744d0c39cc372af4d1ecf2d09e84160ca905f3f597d20e2eec144a446a0459ad600001c93c7d3750006240af373971c01010000000201000000000005f5e100 " ;
30
31
31
32
uint256 fee = pythLazer.verification_fee ();
32
33
@@ -37,12 +38,12 @@ contract PythLazerTest is Test {
37
38
38
39
// Alice provides appropriate fee
39
40
vm.prank (alice);
40
- pythLazer.verifyUpdate { value: fee }(update);
41
+ pythLazer.verifyUpdate {value: fee}(update);
41
42
assertEq (alice.balance, 1 ether - fee);
42
43
43
44
// Alice overpays and is refunded
44
45
vm.prank (alice);
45
- pythLazer.verifyUpdate { value: 0.5 ether }(update);
46
+ pythLazer.verifyUpdate {value: 0.5 ether }(update);
46
47
assertEq (alice.balance, 1 ether - fee - fee);
47
48
48
49
// Bob does not attach a fee
@@ -54,7 +55,7 @@ contract PythLazerTest is Test {
54
55
// Bob does not attach enough fees
55
56
vm.prank (bob);
56
57
vm.expectRevert ("Insufficient fee provided " );
57
- pythLazer.verifyUpdate { value: 1 wei }(update);
58
+ pythLazer.verifyUpdate {value: 1 wei }(update);
58
59
assertEq (bob.balance, 1 ether);
59
60
}
60
61
}
0 commit comments