Skip to content

Commit

Permalink
fix(Horizon): withdraw delegation with beneficiary test fix (#1057)
Browse files Browse the repository at this point in the history
* fix(Horizon): withdraw delegation with beneficiary test fix

* fix: skip addresses that will overflow
  • Loading branch information
Maikol authored Oct 7, 2024
1 parent f88f335 commit e40c8fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/horizon/test/staking/delegation/withdraw.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ contract HorizonStakingWithdrawDelegationTest is HorizonStakingTest {
useDelegation(delegationAmount)
{
vm.assume(beneficiary != address(0));
// Skip beneficiary if balance will overflow
vm.assume(token.balanceOf(beneficiary) < type(uint256).max - delegationAmount);

// Delegator undelegates to beneficiary
resetPrank(users.delegator);
Expand Down

0 comments on commit e40c8fe

Please sign in to comment.