aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2019-02-02 08:04:30 +0800
committerGitHub <noreply@github.com>2019-02-02 08:04:30 +0800
commit069c9fd4a64512844975236aa915a8e32f858417 (patch)
tree501a2793d97e20561b0d8f15a786f32d701be95c
parent42c13ecafab71f7249966acd4d8b0366124d1d9a (diff)
parent9fd372da51aa63557997a48ba2117a7ea20f9d11 (diff)
downloaddexon-0x-contracts-069c9fd4a64512844975236aa915a8e32f858417.tar
dexon-0x-contracts-069c9fd4a64512844975236aa915a8e32f858417.tar.gz
dexon-0x-contracts-069c9fd4a64512844975236aa915a8e32f858417.tar.bz2
dexon-0x-contracts-069c9fd4a64512844975236aa915a8e32f858417.tar.lz
dexon-0x-contracts-069c9fd4a64512844975236aa915a8e32f858417.tar.xz
dexon-0x-contracts-069c9fd4a64512844975236aa915a8e32f858417.tar.zst
dexon-0x-contracts-069c9fd4a64512844975236aa915a8e32f858417.zip
Merge pull request #1568 from smithki/fix/contract-wrappers/wrong-default-address-for-order-validator-wrapper
Use correct "orderValidator" address in OrderValidatorWrapper constructor
-rw-r--r--packages/contract-wrappers/CHANGELOG.json9
-rw-r--r--packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts2
2 files changed, 10 insertions, 1 deletions
diff --git a/packages/contract-wrappers/CHANGELOG.json b/packages/contract-wrappers/CHANGELOG.json
index 30199ae1d..9cea720c8 100644
--- a/packages/contract-wrappers/CHANGELOG.json
+++ b/packages/contract-wrappers/CHANGELOG.json
@@ -1,5 +1,14 @@
[
{
+ "version": "6.0.1",
+ "changes": [
+ {
+ "note": "Fix OrderValidatorWrapper constructor to use the correct address",
+ "pr": 1568
+ }
+ ]
+ },
+ {
"version": "6.0.0",
"changes": [
{
diff --git a/packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts
index c186e080e..f398142ce 100644
--- a/packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts
+++ b/packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts
@@ -29,7 +29,7 @@ export class OrderValidatorWrapper extends ContractWrapper {
*/
constructor(web3Wrapper: Web3Wrapper, networkId: number, address?: string) {
super(web3Wrapper, networkId);
- this.address = _.isUndefined(address) ? _getDefaultContractAddresses(networkId).exchange : address;
+ this.address = _.isUndefined(address) ? _getDefaultContractAddresses(networkId).orderValidator : address;
}
/**
* Get an object conforming to OrderAndTraderInfo containing on-chain information of the provided order and address