From c10a98e3ea9102fb3cea9d1e40578b54c3841bb3 Mon Sep 17 00:00:00 2001 From: b4cksl4sh Date: Sun, 12 Jan 2025 23:17:54 +0300 Subject: [PATCH 1/2] Removed masterchain, removed extra jettonWallet code from JettonMinter data. Renamed jetton_minter.tact to jetton_minter_discoverable.tact --- .../{jetton_minter.tact => jetton_minter_discoverable.tact} | 5 ++--- tact.config.json | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) rename sources/{jetton_minter.tact => jetton_minter_discoverable.tact} (96%) diff --git a/sources/jetton_minter.tact b/sources/jetton_minter_discoverable.tact similarity index 96% rename from sources/jetton_minter.tact rename to sources/jetton_minter_discoverable.tact index 1285f1c..8ba8f4d 100644 --- a/sources/jetton_minter.tact +++ b/sources/jetton_minter_discoverable.tact @@ -22,14 +22,12 @@ contract JettonMinter with MinterExitcodes, GasConstants { mintable: Bool; owner: Address; jettonContent: Cell; - jettonWalletCode: Cell; init(owner: Address, jettonContent: Cell) { self.totalSupply = 0; self.mintable = true; self.owner = owner; self.jettonContent = jettonContent; - self.jettonWalletCode = initOf JettonWallet(self.owner, myAddress()).code; } receive(msg: TokenBurnNotification) { @@ -151,7 +149,8 @@ contract JettonMinter with MinterExitcodes, GasConstants { mintable: self.mintable, adminAddress: self.owner, jettonContent: self.jettonContent, - jettonWalletCode: self.jettonWalletCode + //Owner may be any address, what matters here is the code, not data. + jettonWalletCode: initOf JettonWallet(myAddress(), myAddress()).code } } get fun get_wallet_address(ownerAddress: Address): Address { diff --git a/tact.config.json b/tact.config.json index 66ea4e9..a3212c0 100644 --- a/tact.config.json +++ b/tact.config.json @@ -1,13 +1,12 @@ { "projects": [{ "name": "Jetton", - "path": "./sources/jetton_minter.tact", + "path": "./sources/jetton_minter_discoverable.tact", "output": "./sources/output", "mode": "full", "options": { "external": false, "debug": true, - "masterchain": true, "ipfsAbiGetter": false, "interfacesGetter": false, "experimental": { From 19a7cf0afe8a86b301488fe096a2da4cd3f930a4 Mon Sep 17 00:00:00 2001 From: b4cksl4sh Date: Wed, 15 Jan 2025 03:27:36 +0300 Subject: [PATCH 2/2] reverted masterchain, as it depends on Tact 1.6 --- tact.config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/tact.config.json b/tact.config.json index a3212c0..d207c59 100644 --- a/tact.config.json +++ b/tact.config.json @@ -7,6 +7,7 @@ "options": { "external": false, "debug": true, + "masterchain": true, "ipfsAbiGetter": false, "interfacesGetter": false, "experimental": {