diff options
author | Fabio Berger <me@fabioberger.com> | 2018-09-05 01:39:53 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-09-05 01:39:53 +0800 |
commit | c916dd6ebb069244cbe1da9aeeb643ccc7f47aa0 (patch) | |
tree | a46568196521048cb290dc3994e4c2c8dbd0e2eb | |
parent | 8a683b854150acadf7deee7a3f19119f83136276 (diff) | |
download | dexon-sol-tools-c916dd6ebb069244cbe1da9aeeb643ccc7f47aa0.tar dexon-sol-tools-c916dd6ebb069244cbe1da9aeeb643ccc7f47aa0.tar.gz dexon-sol-tools-c916dd6ebb069244cbe1da9aeeb643ccc7f47aa0.tar.bz2 dexon-sol-tools-c916dd6ebb069244cbe1da9aeeb643ccc7f47aa0.tar.lz dexon-sol-tools-c916dd6ebb069244cbe1da9aeeb643ccc7f47aa0.tar.xz dexon-sol-tools-c916dd6ebb069244cbe1da9aeeb643ccc7f47aa0.tar.zst dexon-sol-tools-c916dd6ebb069244cbe1da9aeeb643ccc7f47aa0.zip |
Add back order validation logic
-rw-r--r-- | packages/website/ts/blockchain.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index b97d86e99..36c449573 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -369,13 +369,11 @@ export class Blockchain { fillTakerTokenAmount: BigNumber, takerAddress: string, ): Promise<void> { - // TODO: add validation here - // we can use OrderValidationUtils here? - // await this._contractWrappers.exchange.validateFillOrderThrowIfInvalidAsync( - // signedOrder, - // fillTakerTokenAmount, - // takerAddress, - // ); + await this._contractWrappers.exchange.validateFillOrderThrowIfInvalidAsync( + signedOrder, + fillTakerTokenAmount, + takerAddress, + ); } public isValidAddress(address: string): boolean { const lowercaseAddress = address.toLowerCase(); |