Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xorsal committed Sep 19, 2024
1 parent 61dd9bd commit 5a20ed9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ contract BondEscalationAccounting_Unit_Pledge is BaseTest {

(, IOracle.Dispute memory _dispute) = _getResponseAndDispute(oracle);

// Check: does it revert if the caller is not authorized?
vm.expectRevert(IBondEscalationAccounting.BondEscalationAccounting_UnauthorizedCaller.selector);

vm.prank(unauthorizedCaller);
Expand Down Expand Up @@ -225,7 +226,7 @@ contract BondEscalationAccounting_Unit_OnSettleBondEscalation is BaseTest {
_numOfWinningPledgers = bound(_numOfWinningPledgers, 1, 30);
_amountPerPledger = bound(_amountPerPledger, 1, type(uint256).max / _numOfWinningPledgers);

// Check: does it revert if the pledger does not have enough funds?
// Check: does it revert if the caller is not authorized?
vm.expectRevert(IBondEscalationAccounting.BondEscalationAccounting_UnauthorizedCaller.selector);

vm.prank(unauthorizedCaller);
Expand Down Expand Up @@ -382,7 +383,7 @@ contract BondEscalationAccounting_Unit_ReleasePledge is BaseTest {

(, IOracle.Dispute memory _dispute) = _getResponseAndDispute(oracle);

// Check: does it revert if the pledger does not have enough funds pledged?
// Check: does it revert if the caller is not authorized?
vm.expectRevert(IBondEscalationAccounting.BondEscalationAccounting_UnauthorizedCaller.selector);

vm.prank(unauthorizedCaller);
Expand Down

0 comments on commit 5a20ed9

Please sign in to comment.