Skip to content

Interacting with generated output wasm binary file in JS #38

@Samboy76

Description

@Samboy76

Hi,

What is the effective way of interacting with wasm binary file in JavaScript?
Can I use the following code snippet?

const wasmBinary = fs.readFileSync(...);
const instance = await WebAssembly.instantiate(wasmBinary, importObject);
instance.instance.exports.

or is it done EVM way e.g. ethers.Contract?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions