Skip to content

Commit 9d8e85f

Browse files
authored
Updated
1 parent 35cd634 commit 9d8e85f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

contracts/NFT_ON_CHAIN/NFT_START.sol

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

129129
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+
// =============================================================================
132143
}
133144
}

0 commit comments

Comments
 (0)