mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
faucet: Update for hd wallet change
This commit is contained in:
parent
c54fb1ae41
commit
9496fc2540
@ -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}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user