Skip to content

Commit

Permalink
fix wording in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zokunei committed Aug 24, 2023
1 parent a5269b9 commit 0895551
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/foundry/DepositHelperERC4626.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ contract DepositHelperERC4626Test is ERC721Holder, Test {

function testRevertOnDepositUnauthorized() public {
uint relicId = helper.createRelicAndDeposit(0, 1);
vm.expectRevert(bytes("not owner or approved"));
vm.expectRevert(bytes("not approved or owner"));
vm.prank(address(1));
helper.deposit(1, relicId);
}
Expand Down Expand Up @@ -102,7 +102,7 @@ contract DepositHelperERC4626Test is ERC721Holder, Test {

function testRevertOnWithdrawUnauthorized(bool harvest) public {
uint relicId = helper.createRelicAndDeposit(0, 1);
vm.expectRevert(bytes("not owner or approved"));
vm.expectRevert(bytes("not approved or owner"));
vm.prank(address(1));
helper.withdraw(1, relicId, harvest, false);
}
Expand Down
4 changes: 2 additions & 2 deletions test/foundry/DepositHelperReaperBPT.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ contract DepositHelperReaperBPTTest is ERC721Holder, Test {
IReZap.Step[] memory stepsA = reZap.findStepsIn(address(wftm), bpt, 1 ether);
(uint relicId,) = helper.createRelicAndDeposit(stepsA, 0, 1 ether);
IReZap.Step[] memory stepsB = reZap.findStepsIn(address(wftm), bpt, 1 ether);
vm.expectRevert(bytes("not owner or approved"));
vm.expectRevert(bytes("not approved or owner"));
vm.prank(address(1));
helper.deposit(stepsB, 1 ether, relicId);
}
Expand Down Expand Up @@ -133,7 +133,7 @@ contract DepositHelperReaperBPTTest is ERC721Holder, Test {
(uint relicId, uint shares) = helper.createRelicAndDeposit(stepsIn, 0, 1 ether);
IReZap.Step[] memory stepsOut =
reZap.findStepsOut(address(wftm), bpt, shares * vault.balance() / vault.totalSupply());
vm.expectRevert(bytes("not owner or approved"));
vm.expectRevert(bytes("not approved or owner"));
vm.prank(address(1));
helper.withdraw(stepsOut, shares, relicId, harvest, isETH);
}
Expand Down

0 comments on commit 0895551

Please sign in to comment.