Skip to content

Commit

Permalink
Remove _update
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Jun 12, 2024
1 parent a7237a9 commit 269cc8c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/PermissionedERC20Wrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ contract PermissionedERC20Wrapper is Auth, ERC20PermissionedBase {
}

// --- Permission checks ---
function _update(address from, address to, uint256 value) internal virtual override {
require(hasPermission(to), "PermissionedERC20Wrapper/no-permission");
super._update(from, to, value);
}

function hasPermission(address account) public view override returns (bool attested) {
if (
account == address(this) || account == address(0) || account == MORPHO || account == BUNDLER
Expand Down

0 comments on commit 269cc8c

Please sign in to comment.