aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/util/formatters.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2018-01-31 03:27:14 +0800
committerGitHub <noreply@github.com>2018-01-31 03:27:14 +0800
commit2bcb7d56394c43acd68d1823092de2ad047abc6d (patch)
tree55684889214373fcd66ca52efa079f381cfb388b /packages/contracts/util/formatters.ts
parentd004df56e38726ed7f1b775da33d8f37aae270db (diff)
parent7ad314472d27e8a6c6ee8242f4f335d414709f4d (diff)
downloaddexon-0x-contracts-2bcb7d56394c43acd68d1823092de2ad047abc6d.tar.gz
dexon-0x-contracts-2bcb7d56394c43acd68d1823092de2ad047abc6d.tar.zst
dexon-0x-contracts-2bcb7d56394c43acd68d1823092de2ad047abc6d.zip
Merge pull request #332 from 0xProject/feature/contracts-abi-gen
Contracts refactor. Bye, truffle!!! :clap:
Diffstat (limited to 'packages/contracts/util/formatters.ts')
-rw-r--r--packages/contracts/util/formatters.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/contracts/util/formatters.ts b/packages/contracts/util/formatters.ts
index 0d0ef6df4..e16fe8d45 100644
--- a/packages/contracts/util/formatters.ts
+++ b/packages/contracts/util/formatters.ts
@@ -35,9 +35,9 @@ export const formatters = {
order.params.expirationTimestampInSec,
order.params.salt,
]);
- batchFill.v.push(order.params.v);
- batchFill.r.push(order.params.r);
- batchFill.s.push(order.params.s);
+ batchFill.v.push(order.params.v as number);
+ batchFill.r.push(order.params.r as string);
+ batchFill.s.push(order.params.s as string);
if (fillTakerTokenAmounts.length < orders.length) {
batchFill.fillTakerTokenAmounts.push(order.params.takerTokenAmount);
}
@@ -74,9 +74,9 @@ export const formatters = {
order.params.expirationTimestampInSec,
order.params.salt,
]);
- fillUpTo.v.push(order.params.v);
- fillUpTo.r.push(order.params.r);
- fillUpTo.s.push(order.params.s);
+ fillUpTo.v.push(order.params.v as number);
+ fillUpTo.r.push(order.params.r as string);
+ fillUpTo.s.push(order.params.s as string);
});
return fillUpTo;
},