Merge pull request #1568 from smithki/fix/contract-wrappers/wrong-default-address-for-order-validator-wrapper
Use correct "orderValidator" address in OrderValidatorWrapper constructor
This commit is contained in:
@@ -1,4 +1,13 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "6.0.1",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"note": "Fix OrderValidatorWrapper constructor to use the correct address",
|
||||||
|
"pr": 1568
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "6.0.0",
|
"version": "6.0.0",
|
||||||
"changes": [
|
"changes": [
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export class OrderValidatorWrapper extends ContractWrapper {
|
|||||||
*/
|
*/
|
||||||
constructor(web3Wrapper: Web3Wrapper, networkId: number, address?: string) {
|
constructor(web3Wrapper: Web3Wrapper, networkId: number, address?: string) {
|
||||||
super(web3Wrapper, networkId);
|
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
|
* Get an object conforming to OrderAndTraderInfo containing on-chain information of the provided order and address
|
||||||
|
|||||||
Reference in New Issue
Block a user