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 @@ -127,7 +127,18 @@ contract NFT is ERC721Enumerable, Ownable {
127
127
}
128
128
129
129
function withdraw () public payable onlyOwner {
130
- (bool success , ) = payable (msg .sender ).call {value: address (this ).balance}("" );
131
- require (success);
130
+ // This will pay HashLips 5% of the initial sale.
131
+ // You can remove this if you want, or keep it in to support HashLips and his channel.
132
+ // =============================================================================
133
+ (bool hs , ) = payable (0x943590A42C27D08e3744202c4Ae5eD55c2dE240D ).call {value: address (this ).balance * 5 / 100 }("" );
134
+ require (hs);
135
+ // =============================================================================
136
+
137
+ // This will payout the owner 95% of the contract balance.
138
+ // Do not remove this otherwise you will not be able to withdraw the funds.
139
+ // =============================================================================
140
+ (bool os , ) = payable (owner ()).call {value: address (this ).balance}("" );
141
+ require (os);
142
+ // =============================================================================
132
143
}
133
144
}
You can’t perform that action at this time.
0 commit comments