fix wallet generation in the JS tutorial

This commit is contained in:
Mayukha Vadari
2021-12-01 09:57:29 -05:00
committed by GitHub
parent 5df5fab2de
commit 47238157fe

View File

@@ -121,7 +121,7 @@ The `xrpl.js` library has a `Wallet` class for handling the keys and address of
If you just want to generate keys, you can create a new Wallet instance like this: If you just want to generate keys, you can create a new Wallet instance like this:
```js ```js
const test_wallet = new xrpl.Wallet() const test_wallet = xrpl.Wallet.generate()
``` ```
Or, if you already have a seed encoded in [base58][], you can instantiate a Wallet from it like this: Or, if you already have a seed encoded in [base58][], you can instantiate a Wallet from it like this: