Skip to content

Commit e40c8fe

Browse files
authored
fix(Horizon): withdraw delegation with beneficiary test fix (#1057)
* fix(Horizon): withdraw delegation with beneficiary test fix * fix: skip addresses that will overflow
1 parent f88f335 commit e40c8fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/horizon/test/staking/delegation/withdraw.t.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ contract HorizonStakingWithdrawDelegationTest is HorizonStakingTest {
179179
useDelegation(delegationAmount)
180180
{
181181
vm.assume(beneficiary != address(0));
182+
// Skip beneficiary if balance will overflow
183+
vm.assume(token.balanceOf(beneficiary) < type(uint256).max - delegationAmount);
182184

183185
// Delegator undelegates to beneficiary
184186
resetPrank(users.delegator);

0 commit comments

Comments
 (0)