Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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