- Install packages:
$ pnpm i
- Run dev server:
$ pnpm dev
- Open browser at printed URL
To see Sample hash: <long hash>
in the browser.
Note: edit src/main.ts
file
Nothing is displayed in browser, except errors in console:
Open src/main.ts
and change this:
// This works:
// import wasmURL from '@iroha2/crypto-target-web/wasm-pkg/iroha_crypto_bg.wasm?url'
// await init(wasmURL)
// This not:
await init()
to this:
// This works:
import wasmURL from '@iroha2/crypto-target-web/wasm-pkg/iroha_crypto_bg.wasm?url'
await init(wasmURL)
// This not:
// await init()