Skip to content

The WASM interface has not been initialized #578

@AlexD10S

Description

@AlexD10S

A hacker of the Blockspace Synergy Hackathon reported this issue when trying to deploy a ink!v6 smart contract using https://ui.use.ink/

index-Bcx2wWl-.js:56 Error: The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from [@polkadot](https://t.me/polkadot)/wasm-crypto (or cryptoWaitReady() from [@polkadot](https://t.me/polkadot)/util-crypto) before attempting to use WASM-only interfaces.
    at polkadot-CHO8hR-Q.js:2:240317
    at [Object.sr](https://object.sr/)25519Sign [as sr25519] (polkadot-CHO8hR-Q.js:2:259487)
    at Object.sign (polkadot-CHO8hR-Q.js:2:292514)
    at sign (polkadot-CHO8hR-Q.js:11:289187)
    at GenericExtrinsicPayloadV4.sign (polkadot-CHO8hR-Q.js:11:289968)
    at a.sign (polkadot-CHO8hR-Q.js:11:291994)
    at a.sign (polkadot-CHO8hR-Q.js:11:289027)
    at i.sign (polkadot-CHO8hR-Q.js:11:280170)
    at polkadot-CHO8hR-Q.js:11:431570
    at E (polkadot-CHO8hR-Q.js:10:25337)

The deployment works fine using https://inkv6alpha.netlify.app/ and cargo-contract

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions