Skip to content

Commit

Permalink
Clarify local tunnel logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Jul 27, 2023
1 parent d106d44 commit a57afa3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/ethereum/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a57afa3

Please sign in to comment.