INNER CODE UNIT · JavaScript
chainId
flayerlabs/flaunchgg-contracts · lib/v4-hooks-public/lib/forge-chronicles/index.js:60
chainId = args[i + 1];
i++; // Skip the next argument
break;
} else {
console.error("Error: --chain-id flag requires the chain id of the network where the script was executed");
process.exit(1);
}
case "-r":
case "--rpc-url":
// Check if there's another argument after --rpc-url and the argument is not another command
if (i + 1 < args.length && args[i + 1].charAt(0) !== "-") {
rpcUrl = args[i + 1];
i++; // Skip the next argument
break;
} else {
console.error("Error: --rpc-url flag requires an rpc url");
process.exit(1);
}