sarvalabs / js-moi-sdk

JavaScript library to interact with MOI Protocol via RPC API
https://js-moi-sdk.docs.moi.technology/
Apache License 2.0
24 stars 2 forks source link

Getting error when trying to generate keystore from wallet #57

Closed sarvalabs-bhavyatomar closed 7 months ago

sarvalabs-bhavyatomar commented 9 months ago

this is the code I tried (browser environment)

const wallet = await Wallet.fromMnemonic(
  <mnemonic>,
  "m/44'/6174'/7020'/0/0"
);

console.log(wallet.generateKeystore("Test@123"));

This is the error

image

sarvalabs-harshrastogi commented 7 months ago

https://github.com/sarvalabs/js-moi-sdk/pull/65