From d92340903f5d532c88d0a49de271f64f3ff4fc5f Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 24 Aug 2017 12:37:21 +0200 Subject: Convert artifacts addresses lo lower case before using --- src/contract_wrappers/contract_wrapper.ts | 2 +- src/contract_wrappers/token_wrapper.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/contract_wrappers') diff --git a/src/contract_wrappers/contract_wrapper.ts b/src/contract_wrappers/contract_wrapper.ts index 1cce1b235..7efa229a5 100644 --- a/src/contract_wrappers/contract_wrapper.ts +++ b/src/contract_wrappers/contract_wrapper.ts @@ -22,7 +22,7 @@ export class ContractWrapper { if (!_.isUndefined(address)) { contractAddress = address; } else if (!_.isUndefined(artifactNetworkConfigs)) { - contractAddress = artifactNetworkConfigs.address; + contractAddress = artifactNetworkConfigs.address.toLowerCase(); } if (!_.isUndefined(contractAddress)) { diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index ae1c7fa43..8c1bf6b52 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -252,7 +252,7 @@ export class TokenWrapper extends ContractWrapper { if (_.isUndefined(proxyNetworkConfigsIfExists)) { throw new Error(ZeroExError.ContractNotDeployedOnNetwork); } - const proxyAddress = proxyNetworkConfigsIfExists.address; + const proxyAddress = proxyNetworkConfigsIfExists.address.toLowerCase(); return proxyAddress; } } -- cgit v1.2.3