v6.0.0
This release adds support for ERC721
tokens to be recovered.
The low level recover RecoverERC20
and RecoverERC721
contracts have been moved into the contracts/recover
folder.
They define internal methods that can be used in derived contracts.
The high level ERC20Recover
, ERC721Recover
and TokenRecover
contracts are into the contracts
folder.
They define high level code that can be inherited as is or extended to cover desired behaviors.
These contracts are Ownable
and restrict access to recover methods to owner only.
Note that the old TokenRecover::recoverERC20
method has been updated to accept the tokenReceiver
address, the address that will receive the recovered token.
-function recoverERC20(address tokenAddress, uint256 tokenAmount) public virtual onlyOwner
+function recoverERC20(address tokenAddress, address tokenReceiver, uint256 tokenAmount) public virtual onlyOwner