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

Update GaspumpJetton.ts #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

attikusfinch
Copy link

readTuple updated in latest ton core.

I tried to use this SDK until got this error:

        throw Error('Not a number');
              ^

Error: Not a number
at TupleReader.readBigNumber (C:\Users\Admin\Desktop\Wallet-js-api\node_modules@ton\core\dist\tuple\reader.js:41:19)
at loadTupleBondingCurveParams (C:\Users\Admin\Desktop\Wallet-js-api\node_modules@gaspump\sdk\dist\src\contracts\GaspumpJetton.js:10:29)
at loadTupleFullJettonData (C:\Users\Admin\Desktop\Wallet-js-api\node_modules@gaspump\sdk\dist\src\contracts\GaspumpJetton.js:30:33)
at GaspumpJetton.getFullJettonData (C:\Users\Admin\Desktop\Wallet-js-api\node_modules@gaspump\sdk\dist\src\contracts\GaspumpJetton.js:169:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Then after some debug points I understood that readTuple now also unpack all values inside, so we can parse it like simple tuple with .items[index]

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

Successfully merging this pull request may close these issues.

2 participants