nujan-io / nujan-ide

Web IDE, powered by Nujan, is your ultimate browser-based IDE designed to simplify the journey of writing, testing, compiling, deploying, and interacting with smart contracts on TON. Write smart contracts from anywhere, No setups, no downloads, just pure convenience and versatility.
https://ide.nujan.io
Other
112 stars 12 forks source link

how to send map message #32

Closed mikuh closed 5 months ago

mikuh commented 5 months ago

like this example, how to send the map items

import "@stdlib/deploy";

// messages can contain maps
message Test {
    items: map<Int as uint8, Int as uint8>;
}

contract BlankContract with Deployable {
    init() {

    }

    get fun test(msg: Test) {
        dump(msg.items);
    }
}