was going through this [nft smartcontract][1]
function withdrawMoney() external onlyOwner nonReentrant {
(bool success, ) = msg.sender.call{value: address(this).balance}("");
require(success, "Transfer failed."); }
Rentrancy is attack done from another smart contract and method is already onlyOwner, so
what is the purpose of nonReentrant modifier?
[1]: https://etherscan.io/address/0xed5af388653567af2f388e6224dc7c4b3241c544#code