From 8658fb76fd34604d4cd0761f4716827b869e1f0b Mon Sep 17 00:00:00 2001 From: cgi-bin/ <6095048+sven-hash@users.noreply.github.com> Date: Sun, 20 Aug 2023 13:33:16 +0200 Subject: [PATCH] fix: import private key --- docs/dapps/alephium-web3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dapps/alephium-web3.md b/docs/dapps/alephium-web3.md index 9c8e154d..93520c93 100644 --- a/docs/dapps/alephium-web3.md +++ b/docs/dapps/alephium-web3.md @@ -168,7 +168,7 @@ await nodeWallet.lock() ```typescript // Create a PrivateKeyWallet from private key -const wallet = new PrivateKeyWallet('a642942e67258589cd2b1822c631506632db5a12aabcf413604e785300d762a5', undefined, nodeProvider) +const wallet = new PrivateKeyWallet({privateKey: 'a642942e67258589cd2b1822c631506632db5a12aabcf413604e785300d762a5', keyType: undefined, nodeProvider: web3.getCurrentNodeProvider()}) // Create a PrivateKeyWallet from mnemonic and group, here it will create an account on group 0 const wallet = PrivateKeyWallet.FromMnemonicWithGroup(