Skip to content

Commit

Permalink
fix: add transfer test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Grimal committed Jan 29, 2024
1 parent 3fae502 commit 829f6e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/transactions/morphoWhitelistingUrdTxTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@ contract morphoWhitelistingUrdTxTest is MorphoDaoTxTest {

function testMorphoWhitelistingUrd() public {
assertTrue(morphoToken.doesUserHaveRole(URD, uint8(0)), "doesUserHaveRole(URD, uint8(0))");

vm.prank(URD);
morphoToken.approve(address(morphoDao), type(uint256).max);

deal(address(morphoToken), URD, 1e18);
vm.prank(URD);
morphoToken.transfer(address(0), 1e18);
}
}

0 comments on commit 829f6e8

Please sign in to comment.