Skip to content

Commit d1bfedb

Browse files
authored
Updated
1 parent 1eaf8c9 commit d1bfedb

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

contracts/NFT/NFT_REVEAL.sol

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,18 @@ contract NFT is ERC721Enumerable, Ownable {
139139
}
140140

141141
function withdraw() public payable onlyOwner {
142-
(bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
143-
require(success);
142+
// This will pay HashLips 5% of the initial sale.
143+
// You can remove this if you want, or keep it in to support HashLips and his channel.
144+
// =============================================================================
145+
(bool hs, ) = payable(0x943590A42C27D08e3744202c4Ae5eD55c2dE240D).call{value: address(this).balance * 5 / 100}("");
146+
require(hs);
147+
// =============================================================================
148+
149+
// This will payout the owner 95% of the contract balance.
150+
// Do not remove this otherwise you will not be able to withdraw the funds.
151+
// =============================================================================
152+
(bool os, ) = payable(owner()).call{value: address(this).balance}("");
153+
require(os);
154+
// =============================================================================
144155
}
145156
}

0 commit comments

Comments
 (0)