mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-09 14:18:04 -05:00
fix: PermissionlessCreator withdrawFunds fixed to work with Safe
This commit is contained in:
@@ -266,7 +266,9 @@ contract PermissionlessCreator is ImmutableOwnable {
|
||||
// Owner functions
|
||||
|
||||
function withdrawFunds() external onlyOwner {
|
||||
payable(OWNER).transfer(address(this).balance);
|
||||
// Use call instead of transfer to provide more gas (otherwise it doesn't work with SAFE):
|
||||
// https://diligence.consensys.net/blog/2019/09/stop-using-soliditys-transfer-now/
|
||||
(bool success, ) = OWNER.call{value: address(this).balance}('');
|
||||
}
|
||||
|
||||
function addCreditProvider(address creditProvider) external onlyOwner {
|
||||
|
||||
Reference in New Issue
Block a user