-
Notifications
You must be signed in to change notification settings - Fork 208
Chat questions
Do I need to send 2 messages from Jetton Minter to Jetton Wallet to first deploy it (because it deploys with 0 on balance) and then do the actual minte transaction on it?
No, when sending a message on the TON blockchain you can both attach the StateInit of the contract and the message body itself at the same time. In this case, if the contract is uninitialized, it will be initialized by your StateInit and then immediately process your message. If you attach a StateInit to a message sent to an already initialized contract, the StateInit will be ignored, and only the message body itself will be processed.
More likely yes than no. You can see your dump in the retracer.ton.org later, but the validator is free to send your print anywhere, even to its memory, or to /dev/null.
Hi all. I'm making Jetton-wallet with modifications, I take it from https://github.com/ton-blockchain/minter-contract/. There in read.me it says, do npm install -> make changes -> npm run build. And here I get an error: FATAL ERROR: 'func' with version >= 0.2.0 executable is not found, is it installed and in path?
Use the more up-to-date repository https://github.com/ton-blockchain/token-contract
Could you tell me how a contract can find out that tokens have been sent to its Jetton wallet? Are there any standard ways?
If its Jetton Wallet sends JettonNotify, it will know. If it doesn't, it is impossible to get this information onchain. (JettonWallet does not have to send notify).