ton-community / ton-contract-executor

The TON Contract Executor allows you to write, debug, and fully test your contracts before launching them to the TON blockchain.
64 stars 11 forks source link

Incompatible with latest ton releases #12

Open boolafish opened 1 year ago

boolafish commented 1 year ago

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 commented 1 year ago

UP