Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in creating Simple wallet #25

Open
hasanaliqureshi opened this issue Sep 10, 2017 · 4 comments
Open

Error in creating Simple wallet #25

hasanaliqureshi opened this issue Sep 10, 2017 · 4 comments

Comments

@hasanaliqureshi
Copy link

I am using the same code in the documentation for creating a simple wallet

// Set a wallet name
var walletName = "QuantumMechanicsPRNG";

// Set a password
var password = "Something";

// Create PRNG wallet
var wallet = nem.model.wallet.createPRNG(walletName, password, nem.model.network.data.testnet.id);

but its giving me this error

Uncaught TypeError: _helpers2.default.isHexadecimal is not a function

at Object.encodePrivKey (nem-sdk.js:1238)

at Object.createPRNG (nem-sdk.js:3867)

However brain wallet created successfully. Please check it.

@QuantumMechanics
Copy link
Owner

Hi,

It works here, are you using the latest version ?

@hasanaliqureshi
Copy link
Author

No I am using old version. Let me try with new one and let you know.

@hasanaliqureshi
Copy link
Author

I tried the new script. but its giving me same error.

@hasanaliqureshi
Copy link
Author

01
02
What I am doing wrong? I am using the new js file now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants