Skip to content

Update GaspumpJetton.ts - #8

Open
attikusfinch wants to merge 2 commits into
gas111-bot:mainfrom
attikusfinch:main
Open

Update GaspumpJetton.ts#8
attikusfinch wants to merge 2 commits into
gas111-bot:mainfrom
attikusfinch:main

Conversation

@attikusfinch

Copy link
Copy Markdown

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