diff --git a/src/contracts/token/Eigen.sol b/src/contracts/token/Eigen.sol index 1d3cc37747..fcd15cf157 100644 --- a/src/contracts/token/Eigen.sol +++ b/src/contracts/token/Eigen.sol @@ -155,7 +155,7 @@ contract Eigen is OwnableUpgradeable, ERC20VotesUpgradeable { if (block.timestamp <= transferRestrictionsDisabledAfter) { // if both from and to are not whitelisted require( - from == address(0) || from == address(this) || to == address(this) || allowedFrom[from] || allowedTo[to], + from == address(0) || to == address(0) || allowedFrom[from] || allowedTo[to], "Eigen._beforeTokenTransfer: from or to must be whitelisted" ); } diff --git a/src/test/token/EigenWrapping.t.sol b/src/test/token/EigenWrapping.t.sol index 862beb317a..76b9e63856 100644 --- a/src/test/token/EigenWrapping.t.sol +++ b/src/test/token/EigenWrapping.t.sol @@ -202,7 +202,6 @@ contract EigenWrappingTests is Test { vm.startPrank(minter1); bEIGEN.setAllowedFrom(minter1, true); - eigen.setAllowedTo(address(0), true); vm.stopPrank(); }