diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 18:55:42 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-05-30 18:55:42 +0800 |
commit | 766d46041ec3958ebd625eb5adbc5b46b329b6d8 (patch) | |
tree | 14818a7dcd580058995d00c29a4ecb09a2373495 /src/contract_wrappers/exchange_wrapper.ts | |
parent | 968df3424ccab04ca15bbe4138e35ff90d1c00a4 (diff) | |
download | dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.tar.gz dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.tar.zst dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.zip |
Add fillAmount parameter
Diffstat (limited to 'src/contract_wrappers/exchange_wrapper.ts')
-rw-r--r-- | src/contract_wrappers/exchange_wrapper.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/contract_wrappers/exchange_wrapper.ts b/src/contract_wrappers/exchange_wrapper.ts index a4db63b66..141e9502a 100644 --- a/src/contract_wrappers/exchange_wrapper.ts +++ b/src/contract_wrappers/exchange_wrapper.ts @@ -49,7 +49,8 @@ export class ExchangeWrapper extends ContractWrapper { ); return isValidSignature; } - public async fillOrderAsync(signedOrder: SignedOrder, shouldCheckTransfer: boolean = true) { + public async fillOrderAsync(signedOrder: SignedOrder, fillAmount: BigNumber.BigNumber, + shouldCheckTransfer: boolean = true): Promise<ContractResponse> { assert.doesConformToSchema('signedOrder', JSON.parse(JSON.stringify(signedOrder)), signedOrderSchema); assert.isBoolean('shouldCheckTransfer', shouldCheckTransfer); @@ -76,7 +77,7 @@ export class ExchangeWrapper extends ContractWrapper { const response: ContractResponse = await exchangeInstance.fill( orderAddresses, orderValues, - signedOrder.fillAmount, + fillAmount, shouldCheckTransfer, signedOrder.ecSignature.v, signedOrder.ecSignature.r, |