ton-contract-executor
ton-contract-executor copied to clipboard
Incompatible with latest ton releases
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.
UP