From bc8d9e7bbc8f9567892fe0b6066eb14be25a7612 Mon Sep 17 00:00:00 2001 From: donosonaumczuk Date: Fri, 2 Feb 2024 20:25:39 -0300 Subject: [PATCH] feat: Function to withdraw funds added --- contracts/misc/PermissonlessCreator.sol | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contracts/misc/PermissonlessCreator.sol b/contracts/misc/PermissonlessCreator.sol index cc58486..4cad09c 100644 --- a/contracts/misc/PermissonlessCreator.sol +++ b/contracts/misc/PermissonlessCreator.sol @@ -56,7 +56,10 @@ contract PermissonlessCreator is Ownable { TOKEN_HANDLE_REGISTRY = ITokenHandleRegistry(tokenHandleRegistry); } - // TODO: Function onlyOwner to transfer all funds from paid creations - otherwise funds are locked here. + // Function onlyOwner to transfer all funds from paid creations - otherwise funds are locked here. + function withdrawFunds() external onlyOwner { + payable(owner()).transfer(address(this).balance); + } /////////////////////////// Permissionless payable creation functions //////////////////////////////////////////////