Skip to content

Commit

Permalink
refactor: removed extra code cell (#27)
Browse files Browse the repository at this point in the history
Rename: `minter` -> `minter_discoverable`
  • Loading branch information
Shvandre authored Jan 15, 2025
1 parent ef802f9 commit 70f6c9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tact.config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"projects": [{
"name": "Jetton",
"path": "./sources/jetton_minter.tact",
"path": "./sources/jetton_minter_discoverable.tact",
"output": "./sources/output",
"mode": "full",
"options": {
Expand Down

0 comments on commit 70f6c9c

Please sign in to comment.