diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-05 05:40:58 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 04:36:59 +0800 |
commit | 2bd7b0f66bd28792281ba025cf005c666e7f767e (patch) | |
tree | 228f2797a772a4ba828d6b71e5c85c78a708ed21 /packages/contract-wrappers/src/utils/transaction_encoder.ts | |
parent | 8f0ceaf1d8261e9779213276372f4690cdf3426c (diff) | |
download | dexon-0x-contracts-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.gz dexon-0x-contracts-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.zst dexon-0x-contracts-2bd7b0f66bd28792281ba025cf005c666e7f767e.zip |
update contract_wrappers to use new artifacts and abi-gen wrappers packages
Diffstat (limited to 'packages/contract-wrappers/src/utils/transaction_encoder.ts')
-rw-r--r-- | packages/contract-wrappers/src/utils/transaction_encoder.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contract-wrappers/src/utils/transaction_encoder.ts b/packages/contract-wrappers/src/utils/transaction_encoder.ts index f4c6de97f..d179fa07e 100644 --- a/packages/contract-wrappers/src/utils/transaction_encoder.ts +++ b/packages/contract-wrappers/src/utils/transaction_encoder.ts @@ -1,4 +1,4 @@ -import { wrappers } from '@0xproject/contracts'; +import { ExchangeContract } from '@0xproject/abi-gen-wrappers'; import { schemas } from '@0xproject/json-schemas'; import { eip712Utils } from '@0xproject/order-utils'; @@ -14,8 +14,8 @@ import { assert } from './assert'; * can submit this to the blockchain. The Exchange context executes as if UserA had directly submitted this transaction. */ export class TransactionEncoder { - private readonly _exchangeInstance: wrappers.ExchangeContract; - constructor(exchangeInstance: wrappers.ExchangeContract) { + private readonly _exchangeInstance: ExchangeContract; + constructor(exchangeInstance: ExchangeContract) { this._exchangeInstance = exchangeInstance; } /** @@ -275,7 +275,7 @@ export class TransactionEncoder { ); return abiEncodedData; } - private _getExchangeContract(): wrappers.ExchangeContract { + private _getExchangeContract(): ExchangeContract { return this._exchangeInstance; } } |