tact icon indicating copy to clipboard operation
tact copied to clipboard

Port e2e tests to Sandbox

Open anton-trunov opened this issue 1 year ago • 2 comments

Sandbox is the de-facto standard emulator in the TON ecosystem, however Tact's test suite uses tact-emulator for its end-to-end tests. Using the standard instrument would provide further guarantees that the users will observe the same behavior as our tests. Also, we could potentially benefit from the support and contributions by the TON community.

anton-trunov avatar Jun 28 '24 12:06 anton-trunov

This one would be easier to complete if generated TS wrappers included some parseMessage(src: Slice) which would check source Slice against all known message headers from ABI types and load the one that matches. It can be done by simply generating a bunch of try-catches like this:

parseMessage(slice: Slice) {
    try {
        return loadDeploy(slice);
    } catch {}
    try {
        return loadDeployOk(slice);
    } catch {}
    // ...
}

Gusarich avatar Jul 31 '24 08:07 Gusarich

@Gusarich Sounds like a great idea!

anton-trunov avatar Jul 31 '24 09:07 anton-trunov