@@ -41,16 +41,6 @@ contract PaymasterTest is Test {
41
41
new Paymaster (entrypoint, address (this ));
42
42
}
43
43
44
- function test_zeroAddressSetVerifyingSigner () public {
45
- vm.expectRevert ("Paymaster: verifyingSigner cannot be address(0) " );
46
- paymaster.setVerifyingSigner (address (0 ));
47
- }
48
-
49
- function test_ownerSetVerifyingSigner () public {
50
- vm.expectRevert ("Paymaster: verifyingSigner cannot be the owner " );
51
- paymaster.setVerifyingSigner (address (this ));
52
- }
53
-
54
44
function test_entryPointNotAContract () public {
55
45
vm.expectRevert ("Paymaster: passed _entryPoint is not currently a contract " );
56
46
new Paymaster (IEntryPoint (address (0x1234 )), PAYMASTER_SIGNER);
@@ -79,12 +69,6 @@ contract PaymasterTest is Test {
79
69
assertEq (hash, 0xd3a02a83ba925f913230b3c805cd623d66f85d0d2548a6bfb5dea3aec9757630 );
80
70
}
81
71
82
- function test_setVerifyingSignerOnlyOwner () public {
83
- vm.broadcast (ACCOUNT_OWNER);
84
- vm.expectRevert ("Ownable: caller is not the owner " );
85
- paymaster.setVerifyingSigner (ACCOUNT_OWNER);
86
- }
87
-
88
72
function test_validatePaymasterUserOpValidSignature () public {
89
73
UserOperation memory userOp = createUserOp ();
90
74
signUserOp (userOp);
@@ -93,18 +77,6 @@ contract PaymasterTest is Test {
93
77
entrypoint.simulateValidation (userOp);
94
78
}
95
79
96
- function test_validatePaymasterUserOpUpdatedSigner () public {
97
- paymaster.setVerifyingSigner (ACCOUNT_OWNER);
98
-
99
- UserOperation memory userOp = createUserOp ();
100
- (uint8 v , bytes32 r , bytes32 s ) = vm.sign (ACCOUNT_OWNER_KEY, ECDSA.toEthSignedMessageHash (paymaster.getHash (userOp, MOCK_VALID_UNTIL, MOCK_VALID_AFTER)));
101
- userOp.paymasterAndData = abi.encodePacked (address (paymaster), abi.encode (MOCK_VALID_UNTIL, MOCK_VALID_AFTER), r, s, v);
102
- signUserOp (userOp);
103
-
104
- vm.expectRevert (createEncodedValidationResult (false , 55098 ));
105
- entrypoint.simulateValidation (userOp);
106
- }
107
-
108
80
function test_validatePaymasterUserOpWrongSigner () public {
109
81
UserOperation memory userOp = createUserOp ();
110
82
(uint8 v , bytes32 r , bytes32 s ) = vm.sign (ACCOUNT_OWNER_KEY, ECDSA.toEthSignedMessageHash (paymaster.getHash (userOp, MOCK_VALID_UNTIL, MOCK_VALID_AFTER)));
0 commit comments