@@ -4,6 +4,7 @@ import retry from 'async-retry';
4import { toBN } from 'web3-utils';
4import { toBN } from 'web3-utils';
5import { RETRY_OPTIONS, waitForTransactionConfirm } from './txn';
5import { RETRY_OPTIONS, waitForTransactionConfirm } from './txn';
6import { WALLET_TYPES } from 'lib/constants';
6import { WALLET_TYPES } from 'lib/constants';
7+import { isRopsten } from './flags';
8const TANK_ADDRESS = '0x40f0A6db85f8D7A54fF3eA915b040dE8Cd4A0Eb5';
9const TANK_ADDRESS = '0x40f0A6db85f8D7A54fF3eA915b040dE8Cd4A0Eb5';
@@ -11,7 +12,8 @@ const TANK_ADDRESS = '0x40f0A6db85f8D7A54fF3eA915b040dE8Cd4A0Eb5';
11// did not succeed", you might need to visit localhost:3001 or whatever
12// did not succeed", you might need to visit localhost:3001 or whatever
12// explicitly and tell your browser that's safe to access.
13// explicitly and tell your browser that's safe to access.
13// https://stackoverflow.com/a/53011185/1334324
14// https://stackoverflow.com/a/53011185/1334324
15+const port = isRopsten ? '3011' : '3001';
14−const baseUrl = 'https://gas-tank.urbit.org:3001';
16+const baseUrl = `https://gas-tank.urbit.org:${port}`;
16function sendRequest(where, what) {
18function sendRequest(where, what) {
17 return new Promise((resolve, reject) => {
19 return new Promise((resolve, reject) => {