Skip to content

Commit

Permalink
Merge pull request #834 from oceanprotocol/feature/collector_safe_wit…
Browse files Browse the repository at this point in the history
…hdraw_eth

Collector: use proper way to send eth
  • Loading branch information
alexcos20 authored Oct 26, 2023
2 parents 7f67cc4 + 5abb2ea commit fa8abae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/communityFee/OPFCommunityFeeCollector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ contract OPFCommunityFeeCollector is Ownable {
external
payable
{
collector.transfer(address(this).balance);
(bool sent, ) = collector.call{value: address(this).balance}("");
require(sent, "Failed to send Ether");
}

/**
Expand Down

0 comments on commit fa8abae

Please sign in to comment.