From 638092041f75d432d8a9869eac17912b3376b50e Mon Sep 17 00:00:00 2001 From: l4rot Date: Mon, 13 Mar 2023 15:53:37 +0100 Subject: [PATCH] documentation: corrected readme for wasm web example --- wallet/bindings/wasm/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wallet/bindings/wasm/README.md b/wallet/bindings/wasm/README.md index 08385235b6..a0c0cbef68 100644 --- a/wallet/bindings/wasm/README.md +++ b/wallet/bindings/wasm/README.md @@ -141,12 +141,12 @@ plugins: [ ### Web Usage ```javascript -import init, { AccountManager, CoinType } from "@iota/wallet-wasm/web"; +import * as wallet from "@iota/wallet-wasm/web"; -init().then(() => { - const manager = new AccountManager({ +wallet.init().then(() => { + const manager = new wallet.AccountManager({ storagePath: './my-database', - coinType: CoinType.Shimmer, + coinType: wallet.CoinType.Shimmer, clientOptions: { nodes: ['https://api.testnet.shimmer.network'], }, @@ -167,5 +167,5 @@ init().then(() => { // Default path to load is "iota_wallet_wasm_bg.wasm", // but you can override it by passing a path explicitly. // -// init("./static/iota_wallet_wasm_bg.wasm").then(...) +// wallet.init("./static/iota_wallet_wasm_bg.wasm").then(...) ```