Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicated cell with JettonWallet code #19

Open
anton-trunov opened this issue Dec 19, 2024 · 0 comments
Open

Remove duplicated cell with JettonWallet code #19

anton-trunov opened this issue Dec 19, 2024 · 0 comments

Comments

@anton-trunov
Copy link
Member

When a contract uses initOf on a child contract, Tact automatically stores the child contract code in a cell that gets added as a ref to the contract state, so there is no need to keep this:

jettonWalletCode: Cell;
.

Note that currently Tact uses a dictionary to store all the child contracts if it's just one contract. This will be improved as a follow-up to tact-lang/tact#1213.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant