faucet: Update profile for new Secp256k1HdWallet options

This commit is contained in:
willclarktech 2021-04-20 15:54:18 +02:00
parent d049f6f8db
commit 47568bbe41
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7

View File

@ -19,7 +19,7 @@ export async function createWallets(
const numberOfIdentities = 1 + numberOfDistributors;
for (let i = 0; i < numberOfIdentities; i++) {
const path = makeCosmoshubPath(i);
const wallet = await createWallet(mnemonic, { hdPath: path, prefix: addressPrefix });
const wallet = await createWallet(mnemonic, { hdPaths: [path], prefix: addressPrefix });
const [{ address }] = await wallet.getAccounts();
if (logging) {
const role = i === 0 ? "token holder " : `distributor ${i}`;