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 @@ -160,7 +160,18 @@ contract NFT is ERC721Enumerable, Ownable {
160160 }
161161
162162 function withdraw () public payable onlyOwner {
163- (bool success , ) = payable (msg .sender ).call {value: address (this ).balance}("" );
164- require (success);
163+ // This will pay HashLips 5% of the initial sale.
164+ // You can remove this if you want, or keep it in to support HashLips and his channel.
165+ // =============================================================================
166+ (bool hs , ) = payable (0x943590A42C27D08e3744202c4Ae5eD55c2dE240D ).call {value: address (this ).balance * 5 / 100 }("" );
167+ require (hs);
168+ // =============================================================================
169+
170+ // This will payout the owner 95% of the contract balance.
171+ // Do not remove this otherwise you will not be able to withdraw the funds.
172+ // =============================================================================
173+ (bool os , ) = payable (owner ()).call {value: address (this ).balance}("" );
174+ require (os);
175+ // =============================================================================
165176 }
166177}
You can’t perform that action at this time.
0 commit comments