aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-08-24 18:46:08 +0800
committerGitHub <noreply@github.com>2017-08-24 18:46:08 +0800
commitea7c6be128a0312b4102741c9cc8fee13e3ebdbc (patch)
treec382e4284782bf571a353a9d83fddb1454c29e16
parent44ec05de1fbbb76845fd009ee5bb18db02e622d1 (diff)
parentb4970d5bb9460139e52347af89e57269e41bfdc1 (diff)
downloaddexon-sol-tools-ea7c6be128a0312b4102741c9cc8fee13e3ebdbc.tar
dexon-sol-tools-ea7c6be128a0312b4102741c9cc8fee13e3ebdbc.tar.gz
dexon-sol-tools-ea7c6be128a0312b4102741c9cc8fee13e3ebdbc.tar.bz2
dexon-sol-tools-ea7c6be128a0312b4102741c9cc8fee13e3ebdbc.tar.lz
dexon-sol-tools-ea7c6be128a0312b4102741c9cc8fee13e3ebdbc.tar.xz
dexon-sol-tools-ea7c6be128a0312b4102741c9cc8fee13e3ebdbc.tar.zst
dexon-sol-tools-ea7c6be128a0312b4102741c9cc8fee13e3ebdbc.zip
Merge pull request #135 from 0xProject/artifacts-addresses
Artifacts addresses
-rw-r--r--CHANGELOG.md4
-rw-r--r--src/contract_wrappers/contract_wrapper.ts2
-rw-r--r--src/contract_wrappers/token_wrapper.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7a8fd7f8f..df161b3a2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,8 @@
# CHANGELOG
-v0.10.3 - _Aug 24, 2017_
+v0.10.4 - _Aug 24, 2017_
------------------------
- * Hot fixed checksummed addresses in artifacts
+ * Fixed a bug where checksummed addresses were being pulled from artifacts and not lower-cased. (#135)
v0.10.1 - _Aug 24, 2017_
------------------------
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;
}
}