@@ -17,7 +17,7 @@ contract DepositTest is WithGSE {
1717
1818 vm.prank (_instance);
1919 vm.expectRevert (abi.encodeWithSelector (Errors.GSE__NotRollup.selector , _instance));
20- gse.deposit (address (0 ), address (0 ), BN254Lib.g1Zero (), BN254Lib.g2Zero (), BN254Lib.g1Zero (), onBonus);
20+ gse.deposit (address (1 ), address (0 ), BN254Lib.g1Zero (), BN254Lib.g2Zero (), BN254Lib.g1Zero (), onBonus);
2121 }
2222
2323 modifier whenCallerIsRegisteredRollup (address _instance ) {
@@ -45,7 +45,7 @@ contract DepositTest is WithGSE {
4545
4646 vm.prank (_instance1);
4747 vm.expectRevert (abi.encodeWithSelector (Errors.GSE__NotLatestRollup.selector , _instance1));
48- gse.deposit (address (0 ), address (0 ), BN254Lib.g1Zero (), BN254Lib.g2Zero (), BN254Lib.g1Zero (), onBonus);
48+ gse.deposit (address (1 ), address (0 ), BN254Lib.g1Zero (), BN254Lib.g2Zero (), BN254Lib.g1Zero (), onBonus);
4949 }
5050
5151 modifier givenCallerIsLatest () {
@@ -58,6 +58,7 @@ contract DepositTest is WithGSE {
5858 address _withdrawer
5959 ) external whenCallerIsRegisteredRollup (_instance) givenOnBonusEqTrue givenCallerIsLatest {
6060 // it reverts
61+ vm.assume (_attester != address (0 ));
6162
6263 uint256 activationThreshold = gse.ACTIVATION_THRESHOLD ();
6364
@@ -81,6 +82,7 @@ contract DepositTest is WithGSE {
8182 givenCallerIsLatest
8283 {
8384 // it reverts
85+ vm.assume (_attester != address (0 ));
8486
8587 uint256 activationThreshold = gse.ACTIVATION_THRESHOLD ();
8688
@@ -114,6 +116,8 @@ contract DepositTest is WithGSE {
114116 // it deposits staking asset to governance
115117 // it emits Deposit event
116118
119+ vm.assume (_attester != address (0 ));
120+
117121 uint256 activationThreshold = gse.ACTIVATION_THRESHOLD ();
118122
119123 vm.prank (stakingAsset.owner ());
@@ -165,6 +169,8 @@ contract DepositTest is WithGSE {
165169 // the only diff is `onBonus = false` here. We could consider slamming them together, but to be
166170 // explicit we are not doing that.
167171
172+ vm.assume (_attester != address (0 ));
173+
168174 uint256 activationThreshold = gse.ACTIVATION_THRESHOLD ();
169175
170176 vm.prank (stakingAsset.owner ());
@@ -187,6 +193,8 @@ contract DepositTest is WithGSE {
187193 ) external whenCallerIsRegisteredRollup (_instance) givenOnBonusEqFalse {
188194 // it reverts
189195
196+ vm.assume (_attester != address (0 ));
197+
190198 // Again, this one is essentially same as test_GivenAttesterAlreadyRegisteredOnBonus but with false.
191199
192200 uint256 activationThreshold = gse.ACTIVATION_THRESHOLD ();
@@ -224,6 +232,8 @@ contract DepositTest is WithGSE {
224232 // it deposits staking asset to governance
225233 // it emits Deposit event
226234
235+ vm.assume (_attester != address (0 ));
236+
227237 uint256 activationThreshold = gse.ACTIVATION_THRESHOLD ();
228238
229239 vm.prank (stakingAsset.owner ());
@@ -275,6 +285,8 @@ contract DepositTest is WithGSE {
275285 // it deposits staking asset to governance
276286 // it emits Deposit event
277287
288+ vm.assume (_attester != address (0 ));
289+
278290 // @todo exactly the same as above, with only diff being not latest
279291
280292 uint256 activationThreshold = gse.ACTIVATION_THRESHOLD ();
0 commit comments