Skip to content

Commit

Permalink
Merge pull request #239 from sven-hash/master-2
Browse files Browse the repository at this point in the history
fix: import private key
  • Loading branch information
polarker authored Feb 1, 2024
2 parents ec7bf4e + 8658fb7 commit a582d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/dapps/alephium-web3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a582d92

Please sign in to comment.