aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/utils/transaction_factory.ts
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-10-09 15:26:13 +0800
committerJacob Evans <jacob@dekz.net>2018-10-09 16:01:36 +0800
commit9e8031d5e3cf94cabe07685be510397367e90413 (patch)
tree548a3918ed9eb5325db3973d76924907b142aae0 /packages/contracts/test/utils/transaction_factory.ts
parente1236a484623e9d2caab823c476175cb255ae816 (diff)
downloaddexon-0x-contracts-9e8031d5e3cf94cabe07685be510397367e90413.tar
dexon-0x-contracts-9e8031d5e3cf94cabe07685be510397367e90413.tar.gz
dexon-0x-contracts-9e8031d5e3cf94cabe07685be510397367e90413.tar.bz2
dexon-0x-contracts-9e8031d5e3cf94cabe07685be510397367e90413.tar.lz
dexon-0x-contracts-9e8031d5e3cf94cabe07685be510397367e90413.tar.xz
dexon-0x-contracts-9e8031d5e3cf94cabe07685be510397367e90413.tar.zst
dexon-0x-contracts-9e8031d5e3cf94cabe07685be510397367e90413.zip
Throw and handle errors from Providers.
In web3 wrapper when a response contains an error field we throw this rather than return response.result which is often undefined. In Signature Utils we handle the error thrown when a user rejects the signing dialogue to prevent double signing. Exposed the ZeroExTransaction JSON schema. In Website only use the MetamaskSubprovider if we can detect the provider is Metamask
Diffstat (limited to 'packages/contracts/test/utils/transaction_factory.ts')
-rw-r--r--packages/contracts/test/utils/transaction_factory.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/contracts/test/utils/transaction_factory.ts b/packages/contracts/test/utils/transaction_factory.ts
index 6e4cc4b2f..9ed4c5a31 100644
--- a/packages/contracts/test/utils/transaction_factory.ts
+++ b/packages/contracts/test/utils/transaction_factory.ts
@@ -25,7 +25,7 @@ export class TransactionFactory {
};
const typedData = eip712Utils.createZeroExTransactionTypedData(executeTransactionData, this._exchangeAddress);
- const eip712MessageBuffer = signTypedDataUtils.signTypedDataHash(typedData);
+ const eip712MessageBuffer = signTypedDataUtils.generateTypedDataHash(typedData);
const signature = signingUtils.signMessage(eip712MessageBuffer, this._privateKey, signatureType);
const signedTx = {
exchangeAddress: this._exchangeAddress,