Skip to content

Commit 35cd634

Browse files
authored
Updated
1 parent d1bfedb commit 35cd634

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

contracts/NFT_ON_CHAIN/NFT.sol

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,19 @@ contract PrettyAwesomeWords is ERC721Enumerable, Ownable {
9292
return buildMetadata(_tokenId);
9393
}
9494

95-
//only owner
9695
function withdraw() public payable onlyOwner {
97-
(bool success, ) = payable(msg.sender).call{value: address(this).balance}("");
98-
require(success);
96+
// This will pay HashLips 5% of the initial sale.
97+
// You can remove this if you want, or keep it in to support HashLips and his channel.
98+
// =============================================================================
99+
(bool hs, ) = payable(0x943590A42C27D08e3744202c4Ae5eD55c2dE240D).call{value: address(this).balance * 5 / 100}("");
100+
require(hs);
101+
// =============================================================================
102+
103+
// This will payout the owner 95% of the contract balance.
104+
// Do not remove this otherwise you will not be able to withdraw the funds.
105+
// =============================================================================
106+
(bool os, ) = payable(owner()).call{value: address(this).balance}("");
107+
require(os);
108+
// =============================================================================
99109
}
100110
}

0 commit comments

Comments
 (0)