From a57afa30d52ac3f6df4380fb8179e314b2eb4fb3 Mon Sep 17 00:00:00 2001 From: Shane Earley Date: Thu, 27 Jul 2023 10:24:39 -0400 Subject: [PATCH] Clarify local tunnel logs --- contracts/ethereum/hardhat.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/ethereum/hardhat.config.ts b/contracts/ethereum/hardhat.config.ts index 879cef485..f0eb7a6df 100644 --- a/contracts/ethereum/hardhat.config.ts +++ b/contracts/ethereum/hardhat.config.ts @@ -120,14 +120,14 @@ const config: HardhatUserConfig = { // Start a local tunnel for using RPC over https (e.g. for Metamask on mobile) if (process.env.TUNNEL === 'true') { - const localSubdomain = `cn-hardhat-${os.userInfo().username.toLowerCase()}` + const localSubdomain = `local-hardhat-${os.userInfo().username.toLowerCase()}` const localUrl = `https://${localSubdomain}.loca.lt` localtunnel({ port: 8545, subdomain: localSubdomain }).then( (tunnel: localtunnel.Tunnel) => { if (localUrl === tunnel.url) { - console.log('Your local tunnel is now available at', localUrl) + console.log('Your default local tunnel url is', localUrl) } else { - console.log('Your default local tunnel url is not available, instead use', tunnel.url) + console.log('Your default local tunnel url is not available, use', tunnel.url, 'instead') } process.on('SIGINT', () => { tunnel.close()