Skip to content

Commit

Permalink
Minor tests change
Browse files Browse the repository at this point in the history
  • Loading branch information
sunbreak1211 committed Aug 14, 2024
1 parent f793d2f commit 6619a16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/LockstakeEngine.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ contract LockstakeEngineTest is DssTest {
assertEq(engine.ownerUrns(address(this), 0), urn);
assertEq(engine.ownerUrns(address(this), 1), address(0));
vm.expectRevert("LockstakeEngine/invalid-urn");
engine.isUrnAuth(address(this), 1, address(123));
vm.expectRevert("LockstakeEngine/invalid-urn");
engine.hope(address(this), 1, address(123));
vm.expectRevert("LockstakeEngine/invalid-urn");
engine.nope(address(this), 1, address(123));
Expand Down Expand Up @@ -505,8 +507,6 @@ contract LockstakeEngineTest is DssTest {
mkr.transfer(urnAuthed, 100_000 * 10**18);
ngt.transfer(urnAuthed, 100_000 * 24_000 * 10**18);
vm.startPrank(urnOwner);
vm.expectRevert("LockstakeEngine/invalid-urn");
engine.isUrnAuth(urnOwner, 0, urnOwner);
address urn = engine.open(0);
assertTrue(engine.isUrnAuth(urnOwner, 0, urnOwner));
assertTrue(!engine.isUrnAuth(urnOwner, 0, urnAuthed));
Expand Down

0 comments on commit 6619a16

Please sign in to comment.