Skip to content

Commit

Permalink
✅ fixed : Handler-burnDsc, adding approve (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibourn authored Mar 4, 2024
1 parent f5e6952 commit 87ed991
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/fuzz/failOnRevert/StopOnRevertHandler.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ contract StopOnRevertHandler is Test {
if (amountDsc == 0) {
return;
}
vm.startPrank(msg.sender);
dsc.approve(address(dscEngine), amountDsc);
dscEngine.burnDsc(amountDsc);
vm.stopPrank();
}

// Only the DSCEngine can mint DSC!
Expand Down

0 comments on commit 87ed991

Please sign in to comment.