aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/src
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-05 07:56:01 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-10-16 04:37:56 +0800
commit255da32d290cbf6258ddfc49d875abcf32322673 (patch)
treeae4260743e4daa9f9c7c6b68a79bbab19fa4425e /packages/testnet-faucets/src
parent29063cab186196dc7051ca16ca9409e8619c6673 (diff)
downloaddexon-sol-tools-255da32d290cbf6258ddfc49d875abcf32322673.tar
dexon-sol-tools-255da32d290cbf6258ddfc49d875abcf32322673.tar.gz
dexon-sol-tools-255da32d290cbf6258ddfc49d875abcf32322673.tar.bz2
dexon-sol-tools-255da32d290cbf6258ddfc49d875abcf32322673.tar.lz
dexon-sol-tools-255da32d290cbf6258ddfc49d875abcf32322673.tar.xz
dexon-sol-tools-255da32d290cbf6258ddfc49d875abcf32322673.tar.zst
dexon-sol-tools-255da32d290cbf6258ddfc49d875abcf32322673.zip
Update testnet-faucets and website to work with new artifacts and abi-gen wrappers
Diffstat (limited to 'packages/testnet-faucets/src')
-rw-r--r--packages/testnet-faucets/src/ts/handler.ts18
1 files changed, 16 insertions, 2 deletions
diff --git a/packages/testnet-faucets/src/ts/handler.ts b/packages/testnet-faucets/src/ts/handler.ts
index be42ebde8..b2d2226f4 100644
--- a/packages/testnet-faucets/src/ts/handler.ts
+++ b/packages/testnet-faucets/src/ts/handler.ts
@@ -65,7 +65,21 @@ export class Handler {
const web3Wrapper = new Web3Wrapper(providerObj);
// tslint:disable-next-line:custom-no-magic-numbers
const networkId = parseInt(networkIdString, 10);
- const contractWrappers = new ContractWrappers(providerObj, { networkId });
+ const contractWrappersConfig = {
+ networkId,
+ // TODO(albrow): Load in real contract addresses here.
+ contractAddresses: {
+ erc20Proxy: '',
+ erc721Proxy: '',
+ zrxToken: '',
+ etherToken: '',
+ exchange: '',
+ assetProxyOwner: '',
+ forwarder: '',
+ orderValidator: '',
+ },
+ };
+ const contractWrappers = new ContractWrappers(providerObj, contractWrappersConfig);
const dispatchQueue = new DispatchQueue();
this._networkConfigByNetworkId[networkId] = {
dispatchQueue,
@@ -172,7 +186,7 @@ export class Handler {
makerAssetData,
takerAssetData,
salt: generatePseudoRandomSalt(),
- exchangeAddress: networkConfig.contractWrappers.exchange.getContractAddress(),
+ exchangeAddress: networkConfig.contractWrappers.exchange.address,
feeRecipientAddress: NULL_ADDRESS,
senderAddress: NULL_ADDRESS,
// tslint:disable-next-line:custom-no-magic-numbers