diff options
author | Fabio Berger <me@fabioberger.com> | 2018-02-07 09:22:20 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-02-07 09:22:20 +0800 |
commit | 03f5c9b9508b833bd4645386b5f46720a7d7ba2a (patch) | |
tree | e965843c3ab3320f664d53c90f844825597d1b56 /packages/website/ts/components/token_balances.tsx | |
parent | 4c9c4c487a034d926443eeb8a0154fd38c97aca3 (diff) | |
download | dexon-0x-contracts-03f5c9b9508b833bd4645386b5f46720a7d7ba2a.tar dexon-0x-contracts-03f5c9b9508b833bd4645386b5f46720a7d7ba2a.tar.gz dexon-0x-contracts-03f5c9b9508b833bd4645386b5f46720a7d7ba2a.tar.bz2 dexon-0x-contracts-03f5c9b9508b833bd4645386b5f46720a7d7ba2a.tar.lz dexon-0x-contracts-03f5c9b9508b833bd4645386b5f46720a7d7ba2a.tar.xz dexon-0x-contracts-03f5c9b9508b833bd4645386b5f46720a7d7ba2a.tar.zst dexon-0x-contracts-03f5c9b9508b833bd4645386b5f46720a7d7ba2a.zip |
Add networkId to faucet requests so that we can request tokens on Kovan, Rinkeby and Ropsten
Diffstat (limited to 'packages/website/ts/components/token_balances.tsx')
-rw-r--r-- | packages/website/ts/components/token_balances.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/components/token_balances.tsx b/packages/website/ts/components/token_balances.tsx index dfb62bbb3..64aa1ef3f 100644 --- a/packages/website/ts/components/token_balances.tsx +++ b/packages/website/ts/components/token_balances.tsx @@ -599,7 +599,9 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala await utils.sleepAsync(ARTIFICIAL_FAUCET_REQUEST_DELAY); const segment = isEtherRequest ? 'ether' : 'zrx'; - const response = await fetch(`${constants.URL_ETHER_FAUCET}/${segment}/${this.props.userAddress}`); + const response = await fetch( + `${constants.URL_TESTNET_FAUCET}/${segment}/${this.props.userAddress}?networkId=${this.props.networkId}`, + ); const responseBody = await response.text(); if (response.status !== constants.SUCCESS_STATUS) { utils.consoleLog(`Unexpected status code: ${response.status} -> ${responseBody}`); |