diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2019-02-02 08:28:29 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-02-06 01:23:09 +0800 |
commit | a394967268be3f3d3f7da3507887ee88befee253 (patch) | |
tree | b05b92cdea012c616cb31462f0d238c94ebe21f5 /packages/contract-wrappers | |
parent | c7c4cb9bc6824f12adf352253464c76f177b4914 (diff) | |
download | dexon-0x-contracts-a394967268be3f3d3f7da3507887ee88befee253.tar dexon-0x-contracts-a394967268be3f3d3f7da3507887ee88befee253.tar.gz dexon-0x-contracts-a394967268be3f3d3f7da3507887ee88befee253.tar.bz2 dexon-0x-contracts-a394967268be3f3d3f7da3507887ee88befee253.tar.lz dexon-0x-contracts-a394967268be3f3d3f7da3507887ee88befee253.tar.xz dexon-0x-contracts-a394967268be3f3d3f7da3507887ee88befee253.tar.zst dexon-0x-contracts-a394967268be3f3d3f7da3507887ee88befee253.zip |
Use new transaction schema throughout monorepo
Diffstat (limited to 'packages/contract-wrappers')
-rw-r--r-- | packages/contract-wrappers/src/utils/transaction_encoder.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contract-wrappers/src/utils/transaction_encoder.ts b/packages/contract-wrappers/src/utils/transaction_encoder.ts index 0cf08a8fe..c674abbe5 100644 --- a/packages/contract-wrappers/src/utils/transaction_encoder.ts +++ b/packages/contract-wrappers/src/utils/transaction_encoder.ts @@ -28,11 +28,12 @@ export class TransactionEncoder { public getTransactionHex(data: string, salt: BigNumber, signerAddress: string): string { const exchangeAddress = this._getExchangeContract().address; const executeTransactionData = { + verifyingContractAddress: exchangeAddress, salt, signerAddress, data, }; - const typedData = eip712Utils.createZeroExTransactionTypedData(executeTransactionData, exchangeAddress); + const typedData = eip712Utils.createZeroExTransactionTypedData(executeTransactionData); const eip712MessageBuffer = signTypedDataUtils.generateTypedDataHash(typedData); const messageHex = `0x${eip712MessageBuffer.toString('hex')}`; return messageHex; |