File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments