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..d207c59 100644 --- a/tact.config.json +++ b/tact.config.json @@ -1,7 +1,7 @@ { "projects": [{ "name": "Jetton", - "path": "./sources/jetton_minter.tact", + "path": "./sources/jetton_minter_discoverable.tact", "output": "./sources/output", "mode": "full", "options": {