From 2f63c025e18cfb0185ed0032ad4e9c3a39d3416e Mon Sep 17 00:00:00 2001 From: Jaz-3-0 Date: Mon, 3 Jun 2024 15:22:34 +0200 Subject: [PATCH] update toggle liveness --- smart_contract/contracts/Token.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/smart_contract/contracts/Token.sol b/smart_contract/contracts/Token.sol index 1003ea5..cff42eb 100644 --- a/smart_contract/contracts/Token.sol +++ b/smart_contract/contracts/Token.sol @@ -107,7 +107,11 @@ contract NFTMintDN404 is DN404, ERC20Permit, Ownable { // initialize the toggle live functionality function toggleLive() public onlyOwner { - live = !live + if (live) { + live = false; + } else { + live = true; + } } // initialize withdraw functionality