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

Incompatible with latest ton releases #12

Open
boolafish opened this issue Jan 18, 2023 · 1 comment
Open

Incompatible with latest ton releases #12

boolafish opened this issue Jan 18, 2023 · 1 comment

Comments

@boolafish
Copy link

After ton 13.0.0 release, the message structure has been largely refactored. Some basic types: InternalMessage, CommonMessageInfo, and, CellMessage seems to no longer exist.

Even using their internal function for the internal message, it will fail:

     should run:
     TypeError: message.writeTo is not a function
      at SmartContract.sendInternalMessage (node_modules/ton-contract-executor/dist/smartContract/SmartContract.js:119:17)
      at /Users/poanlin/Audit/TON/hack-challenge-1/1. mutual fund/test.ts:86:33
      at step (1. mutual fund/test.ts:60:23)
      at Object.next (1. mutual fund/test.ts:41:53)
      at /Users/poanlin/Audit/TON/hack-challenge-1/1. mutual fund/test.ts:35:71
      at new Promise (<anonymous>)
      at __awaiter (1. mutual fund/test.ts:31:12)
      at Context.<anonymous> (1. mutual fund/test.ts:72:20)

It might need some refactor to support the new version of ton, or bring the struct to this library itself to not depend on another package.

@kazeens
Copy link

kazeens commented Jan 30, 2023

UP

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

2 participants