p2w-relay: Remove sensitive info from logs

This commit is contained in:
Stan Drozd 2021-12-16 18:10:25 +01:00
parent 88cd947025
commit 843376764f
1 changed files with 0 additions and 2 deletions

View File

@ -58,10 +58,8 @@ async function readinessProbeRoutine(port: number) {
try {
let provider = new ethers.providers.WebSocketProvider(ETH_NODE_URL);
let mnemonic: string = fs.readFileSync(ETH_MNEMONIC_FILE).toString("utf-8").trim();
console.log(`Using ETH devnet mnemonic: ${mnemonic}`);
let wallet = ethers.Wallet.fromMnemonic(mnemonic, ETH_HD_WALLET_PATH);
console.log(`Using ETH wallet pubkey: ${wallet.publicKey}`);
console.log(`Using ETH wallet privkey: ${wallet.privateKey}`);
let signer = new ethers.Wallet(wallet.privateKey, provider);
let balance = await signer.getBalance();
console.log(`Account balance is ${balance}`);