faucet: Update for hd wallet change

This commit is contained in:
willclarktech 2021-04-06 17:11:02 +02:00
parent c54fb1ae41
commit 9496fc2540
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, path, addressPrefix);
const wallet = await createWallet(mnemonic, { hdPath: path, prefix: addressPrefix });
const [{ address }] = await wallet.getAccounts();
if (logging) {
const role = i === 0 ? "token holder " : `distributor ${i}`;