Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions script/E2ETestReverts.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ contract E2ETestReverts is Script {
// ===== Group D2: Empty royalty claim =====
console.log("--- Group D: Royalties (reverts) ---");

// Drain any pending royalties first (F5 buy/sell may have generated new ones)
vm.prank(deployer);
try BOND.claimRoyalties(address(PL_TEST)) {} catch {}

// Now the second claim should revert with NothingToClaim
vm.prank(deployer);
try BOND.claimRoyalties(address(PL_TEST)) {
revert("D2: should have reverted on empty claim");
Expand Down