Skip to content

Commit

Permalink
chore(tests): add hardhat unit tests for XERC20
Browse files Browse the repository at this point in the history
  • Loading branch information
gitmp01 committed Aug 6, 2024
1 parent d0eb557 commit d3d9177
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 114 deletions.
3 changes: 0 additions & 3 deletions solidity/src/ptoken-v2/PTokenV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ contract PTokenV2 is
function setFeesManager(address newAddress) external override {
address msgSender = _msgSender();

if (feesManager == address(0) && msgSender != owner())
// First time
revert("OnlyOwner");
if (feesManager != address(0) && msgSender != feesManager)
revert("OnlyFeesManager");

Expand Down
3 changes: 0 additions & 3 deletions solidity/src/ptoken-v2/PTokenV2NoGSN.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ contract PTokenV2NoGSN is
}

function setFeesManager(address newAddress) public override {
if (feesManager == address(0) && msg.sender != owner())
// First time
revert("OnlyOwner");
if (feesManager != address(0) && msg.sender != feesManager)
revert("OnlyFeesManager");

Expand Down
Loading

0 comments on commit d3d9177

Please sign in to comment.