QuantumMechanics / NEM-sdk

NEM Developer Kit for Node.js and the browser
MIT License
137 stars 82 forks source link

Error in creating Simple wallet #25

Open hasanaliqureshi opened 7 years ago

hasanaliqureshi commented 7 years ago

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 commented 7 years ago

Hi,

It works here, are you using the latest version ?

hasanaliqureshi commented 7 years ago

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

hasanaliqureshi commented 7 years ago

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

hasanaliqureshi commented 7 years ago

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