Hello, how to pass stateInit param to ton-connector when deploy nft collection contract? I constructed a raw tx and it is successed: https://github.com/platwin/ton-nft-test/blob/main/scripts/deploy-from-gen-code.ts. However, when I use ton-connect to create tx, it is failed: https://github.com/platwin/soton-web-app/blob/mint/src/components/Transactoin/index.tsx. The success tx is https://testnet.tonapi.io/transaction/75c1fde9e8d9c0fbc1f778be1eee855b758bb800fb73263297d80c8e52a74268, the failed tx is https://testnet.tonapi.io/transaction/903b63fdb031ffce9b74e49715346e3d914e35f71dcc50871f81bfc9e7b388b8

Mar 14, 2023, 3:19 AM
hello, can anyone help me?
https://test-explorer.toncoin.org/transaction?account=0:ddbe9b8b139b02c6656f8fbd87555653b848a7ec8222e98b90d544614dbd11cc<=9638387000003&hash=8925ac5660ffd882ec08418db97f6dd376c1ed1d95d68beb0cf5465cd24f3335
it seems that this tx use stateInit as tx body.
Mar 14, 2023, 4:20 AM
Usually the Tx with initial calling for deploy will be like this:
https://app.tonkeeper.com/transfer/`CONTRACT_ADDRESS?`text=Deploy%20contract&amount=COST_FOR _DEPLOY&init=YOUR_INITIAL_CODE
Mar 14, 2023, 8:13 AM
Tried with https://test.tonhub.com/transfer/EQBWyCThT365Pq7PiX6t9ooTSH-onl7IBLI4rBFTrmbDGJta?text=Deploy%20contract&amount=100000000&init=te6cckEBCgEAmAACAAYBBEOAEtY0p9TEQvmBwZK24i02w+sSvXG5V9697BPgD3S+ln5QBQQDAgAYdGVzdC10d2l0dGVyAA50ZXN0LXRnACh0ZXN0LWNvbGxlY3Rpb24tbmFtZQAodGVzdC1jb2xsZWN0aW9uLWlkLTEBFP8A9KQT9LzyyAsHAgFiCQgAGaB5LdqJofSBqampqGEADNBsIccA3He2k0c= , but tonhub sandbox cannot sign...
Mar 14, 2023, 8:19 AM
you can change prefix to connect TonKeeper to try out
Mar 14, 2023, 8:19 AM
what is the testnet url prefix of tonkeeper
Mar 14, 2023, 8:23 AM
Probably nothing, you just have to switch network in application.
Mar 14, 2023, 8:33 AM
how to switch network in app?
Mar 14, 2023, 8:41 AM
https://t.me/tondev_eng/7789
Mar 14, 2023, 8:41 AM
thanks
tried with Tonkeeper, and it cannot sign.
Mar 14, 2023, 8:45 AM
Maybe, try removing text out of the link (either move it to binary payload or remove completely)?
Mar 14, 2023, 8:47 AM
cannot sign after remove text param.
Where is tonhub or tonkeeper source code? How does them handle stateInit param? And how does them construct tx that deployed contracts?
Mar 14, 2023, 8:54 AM
github.com/Tonkeeper/wallet & github.com/tonwhales/wallet
Mar 14, 2023, 9:03 AM
why does tonhub wrap internal msg to external msg?
Mar 14, 2023, 9:24 AM
because all transactions are sent as external message
Mar 14, 2023, 9:24 AM
Is there any difference between my code and tonhub's code?Why can my code deploy the contract while Tonhub can't?
Mar 14, 2023, 9:27 AM
sendTransfer takes care of wrapping txn in external message
Mar 14, 2023, 9:30 AM
does telegram web app save uploaded image file permanently?
Mar 14, 2023, 9:54 AM

© 2024 Draquery.com All rights reserved.