Skip to content

Commit

Permalink
Switch to correct cluster when fauceting (#1687)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkporter authored and celo-ci-bot-user committed Nov 13, 2019
1 parent 87bfc3c commit 1eb56cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/celotool/src/cmds/account/faucet.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* tslint:disable no-console */
import { newKit } from '@celo/contractkit'
import { switchToClusterFromEnv } from 'src/lib/cluster'
import { convertToContractDecimals } from 'src/lib/contract-utils'
import { portForwardAnd } from 'src/lib/port_forward'
import { validateAccountAddress } from 'src/lib/utils'
Expand Down Expand Up @@ -29,6 +30,8 @@ export const builder = (argv: yargs.Argv) => {
}

export const handler = async (argv: FaucetArgv) => {
await switchToClusterFromEnv()

const address = argv.account

const cb = async () => {
Expand Down

0 comments on commit 1eb56cf

Please sign in to comment.