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

Bug with parsing tuple of cells returned from get-method #31

Open
Keshoid opened this issue Mar 6, 2024 · 0 comments
Open

Bug with parsing tuple of cells returned from get-method #31

Keshoid opened this issue Mar 6, 2024 · 0 comments

Comments

@Keshoid
Copy link

Keshoid commented Mar 6, 2024

Line with bug:
https://github.com/ton-org/ton/blob/master/src/client/TonClient.ts#L346
Fix: add .bytes to be Cell.fromBase64(s.cell.bytes).
I have a getter which looks like this:

[cell, cell] get_foo() method_id {...}

And it always fails with error stack:

TypeError: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object
    at Function.from (node:buffer:324:9)
    at Function.fromBase64 (/node_modules/@ton/core/dist/boc/Cell.js:41:42)
    at parseStackEntry (/node_modules/@ton/ton/dist/client/TonClient.js:277:54)
    at Array.map (<anonymous>)
    at parseStackItem (/node_modules/@ton/ton/dist/client/TonClient.js:313:34)
    at parseStack (/node_modules/@ton/ton/dist/client/TonClient.js:323:20)
    at TonClient.runMethod (/node_modules/@ton/ton/dist/client/TonClient.js:44:49)
puzzle-rusher pushed a commit to puzzle-rusher/ton that referenced this issue Jun 27, 2024
feat/Implemented read cons in Reader
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

No branches or pull requests

1 participant