Skip to content

Commit

Permalink
feature[setler-cli]: update messaging to fund livenet
Browse files Browse the repository at this point in the history
  • Loading branch information
mankins committed Sep 25, 2023
1 parent a08a538 commit c4e6edf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions identity-wallet/setler-cli/src/actions/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,23 @@ const exec = async (context) => {
walletAddress = keys[networkParts[0]][networkParts[1]].address;
}

if (network === "xrpl:livenet") {
log(
chalk.red(
`To fund this wallet you will need to transfer XRP to the address: ` +
chalk.blue(`${walletAddress}`) +
` on ` +
chalk.magenta(`${network}\n`) +
" ".repeat(`To fund this wallet you will need to transfer XRP to the address: `.length) +
stringToColorBlocks(walletAddress, network)

)
);
process.exit(1);
}



// input[2] could be {address}, in which case we should fund that address
// ask for the address
const response = await prompts([
Expand Down

0 comments on commit c4e6edf

Please sign in to comment.