Skip to content

Commit

Permalink
Mods a script to support the latest wallet byron CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski committed Jul 1, 2020
1 parent d5e5ba5 commit de98f11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nix/nixos/create-faucet-wallet/create-faucet-wallet.sh
Expand Up @@ -47,9 +47,9 @@ fi

if [ -z "${MNEMONIC_PATH:-}" ]; then
if [ "$ERA" == "byron" ]; then
MNEMONIC="${MNEMONIC:-"$($BYRON_CMD mnemonic generate)"}"
MNEMONIC="${MNEMONIC:-"$($BYRON_CMD reward-phrase generate)"}"
else
MNEMONIC="${MNEMONIC:-"$($SHELLEY_CMD mnemonic generate)"}"
MNEMONIC="${MNEMONIC:-"$($SHELLEY_CMD reward-phrase generate)"}"
fi
else
MNEMONIC="$(cat "$MNEMONIC_PATH")"
Expand All @@ -61,7 +61,7 @@ if [ "$ERA" == "byron" ]; then
GEN_CMD=$BYRON_CMD MNEMONIC=$MNEMONIC PASSPHRASE=$PASSPHRASE OUT=$OUT $EXPECT_CMD <<- ' END' > /dev/null
set chan [open $::env(OUT) w]
set timeout 10
spawn "$::env(GEN_CMD)" wallet create from-mnemonic --wallet-style icarus IcarusFaucetWallet
spawn "$::env(GEN_CMD)" wallet create from-recovery-phrase --wallet-style icarus IcarusFaucetWallet
sleep 0.1
expect "Please enter 15 mnemonic words : "
send -- "$::env(MNEMONIC)\r"
Expand Down

0 comments on commit de98f11

Please sign in to comment.