aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src/assert.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-05-02 23:38:38 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-05-02 23:38:50 +0800
commita6046af0240d9257a9e9dd80dc4dc5f533df8799 (patch)
tree36fedb1f2df768380ee8e71c143ac0887779ba67 /packages/order-utils/src/assert.ts
parentadaff92c9243e7e13737f92cf4b6ade77ebd6e43 (diff)
downloaddexon-0x-contracts-a6046af0240d9257a9e9dd80dc4dc5f533df8799.tar
dexon-0x-contracts-a6046af0240d9257a9e9dd80dc4dc5f533df8799.tar.gz
dexon-0x-contracts-a6046af0240d9257a9e9dd80dc4dc5f533df8799.tar.bz2
dexon-0x-contracts-a6046af0240d9257a9e9dd80dc4dc5f533df8799.tar.lz
dexon-0x-contracts-a6046af0240d9257a9e9dd80dc4dc5f533df8799.tar.xz
dexon-0x-contracts-a6046af0240d9257a9e9dd80dc4dc5f533df8799.tar.zst
dexon-0x-contracts-a6046af0240d9257a9e9dd80dc4dc5f533df8799.zip
Stop exporting assertions from order-utils
Diffstat (limited to 'packages/order-utils/src/assert.ts')
-rw-r--r--packages/order-utils/src/assert.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/packages/order-utils/src/assert.ts b/packages/order-utils/src/assert.ts
index 92641b845..5ac402e7e 100644
--- a/packages/order-utils/src/assert.ts
+++ b/packages/order-utils/src/assert.ts
@@ -12,10 +12,6 @@ import { isValidSignature } from './signature_utils';
export const assert = {
...sharedAssert,
- isValidSignature(orderHash: string, ecSignature: ECSignature, signerAddress: string) {
- const isValid = isValidSignature(orderHash, ecSignature, signerAddress);
- this.assert(isValid, `Expected order with hash '${orderHash}' to have a valid signature`);
- },
async isSenderAddressAsync(
variableName: string,
senderAddressHex: string,
@@ -28,8 +24,4 @@ export const assert = {
`Specified ${variableName} ${senderAddressHex} isn't available through the supplied web3 provider`,
);
},
- async isUserAddressAvailableAsync(web3Wrapper: Web3Wrapper): Promise<void> {
- const availableAddresses = await web3Wrapper.getAvailableAddressesAsync();
- this.assert(!_.isEmpty(availableAddresses), 'No addresses were available on the provided web3 provider');
- },
};