Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 01-dotenv-app.js && 02-dotenv-rpcrelay.js to american english and correct faucet link #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions util/01-dotenv-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function initDotEnvForApp() {
scriptId: 'initDotEnvForApp',
scriptCategory: 'setup',
});
logger.logStart('Initialise .env file - start');
logger.logStart('initialize .env file - start');

// prompt for inputs
const { allowOverwrite1stChar, dotEnvText, accounts } = await promptInputs();
Expand All @@ -51,7 +51,7 @@ async function initDotEnvForApp() {
logger.log('Leave as-is .env file');
}

logger.logComplete('Initialise .env file - complete');
logger.logComplete('Initialize .env file - complete');
}

function constructDotEnvFile({
Expand Down Expand Up @@ -144,14 +144,14 @@ async function promptInputs() {
do {
if (restart) {
console.error(
"\n❌ Invalid input values detected, the '.env' file has not been initialised.",
"\n❌ Invalid input values detected, the '.env' file has not been initialized.",
);
logger.log('Restarting the interactive prompts', CHARS.HELLIP);
}
logger.logSectionWithoutWaitPrompt(
'Please enter values requested, or accept defaults, in the interactive prompts below.',
);
logger.log("These will be used to initialise the '.env' file.\n");
logger.log("These will be used to initialize the '.env' file.\n");

restart = false;
let use1stAccountAsOperator = false;
Expand Down Expand Up @@ -327,7 +327,7 @@ async function promptInputs() {
);
logger.log(
'If this account has not yet been created or funded, you may do so via',
...logger.applyAnsi('URL', 'https://faucet.hedera.com'),
...logger.applyAnsi('URL', 'https://portal.hedera.com/faucet'),
);
logger.log('(Simply enter a blank value when this account is ready)');
await rlPrompt.question('> '); // discard the response, no use for it
Expand Down
4 changes: 2 additions & 2 deletions util/02-dotenv-rpcrelay.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function initDotEnvForRpcRelay() {
scriptCategory: 'setup',
});
logger.logStart(
'Hello Future World - Initialise RPC Relay .env file - start',
'Hello Future World - initialize RPC Relay .env file - start',
);

// read in initial values for env variables that have been set
Expand Down Expand Up @@ -49,7 +49,7 @@ MIRROR_NODE_URL=https://testnet.mirrornode.hedera.com/

logger.log('OK, wrote .rpcrelay.env file');
logger.logComplete(
'Hello Future World - Initialise RPC Relay .env file - complete',
'Hello Future World - initialize RPC Relay .env file - complete',
);
}

Expand Down