aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 18:55:42 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-30 18:55:42 +0800
commit766d46041ec3958ebd625eb5adbc5b46b329b6d8 (patch)
tree14818a7dcd580058995d00c29a4ecb09a2373495 /src/contract_wrappers
parent968df3424ccab04ca15bbe4138e35ff90d1c00a4 (diff)
downloaddexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.tar
dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.tar.gz
dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.tar.bz2
dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.tar.lz
dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.tar.xz
dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.tar.zst
dexon-0x-contracts-766d46041ec3958ebd625eb5adbc5b46b329b6d8.zip
Add fillAmount parameter
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r--src/contract_wrappers/exchange_wrapper.ts5
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,