From 269cc8c56d418e6361f8fe61a182fd7dc748edce Mon Sep 17 00:00:00 2001 From: Jeroen Offerijns Date: Wed, 12 Jun 2024 10:30:19 +0200 Subject: [PATCH] Remove _update --- src/PermissionedERC20Wrapper.sol | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/PermissionedERC20Wrapper.sol b/src/PermissionedERC20Wrapper.sol index 61794ac..dfd4f9c 100644 --- a/src/PermissionedERC20Wrapper.sol +++ b/src/PermissionedERC20Wrapper.sol @@ -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