Skip to content

Found a little bug in the code of ch7-happycoin-as #1

Open
@AdamW666

Description

@AdamW666

There is a bug on this line
wasi.start(happycoinModule);
When I run this code, the wasi complained there is no '__start' function in the exports object.
And I checked the intermediate .js file, actually it only exported the 'memory' and 'getHappycoins'
So I changed it to:
wasi.initialize(happycoinModule)
which resolved this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions