We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description:
I got an error when trying to get jetton data with this function:
async getJettonData(provider: ContractProvider) { let res = await provider.get('get_jetton_data', []); let totalSupply = res.stack.readBigNumber(); let mintable = res.stack.readBoolean(); let adminAddress = res.stack.readAddress(); let content = res.stack.readCell(); let walletCode = res.stack.readCell(); return { totalSupply, mintable, adminAddress, content, walletCode }; }
The problem is that the proxy ton (EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez) does not have an admin address, so I encounter the error:
Error: Invalid address: 0
Steps to Reproduce: Call the function with the jetton address EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez.
Solution: Use let adminAddress = res.stack.readAddressOpt(); instead.
let adminAddress = res.stack.readAddressOpt();
The text was updated successfully, but these errors were encountered:
Merge pull request ton-core#34 from siandreev/main
04de9a9
feat: Block actions and OutList added
Same here. I agree with the solution proposed here
Sorry, something went wrong.
No branches or pull requests
Description:
I got an error when trying to get jetton data with this function:
The problem is that the proxy ton (EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez) does not have an admin address, so I encounter the error:
Steps to Reproduce:
Call the function with the jetton address EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez.
Solution:
Use
let adminAddress = res.stack.readAddressOpt();
instead.The text was updated successfully, but these errors were encountered: