diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-02 09:22:42 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 04:36:09 +0800 |
commit | 026ad1f9a10359723eed54f37c067ee2a61d8fcd (patch) | |
tree | c14d09b25ae07473e9d5b516b21331a8ad5c3621 /packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts | |
parent | 81c48872415998e53ad653aabf183e18257ec327 (diff) | |
download | dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.gz dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.bz2 dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.lz dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.xz dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.tar.zst dexon-sol-tools-026ad1f9a10359723eed54f37c067ee2a61d8fcd.zip |
Update contract-wrappers package to use new contracts package for generated files
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts index 933c1dc27..6ba162213 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts @@ -1,20 +1,19 @@ +import { artifacts, wrappers } from '@0xproject/contracts'; import { AssetProxyId } from '@0xproject/types'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import { ContractAbi } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts } from '../artifacts'; import { assert } from '../utils/assert'; import { ContractWrapper } from './contract_wrapper'; -import { ERC721ProxyContract } from './generated/erc721_proxy'; /** * This class includes the functionality related to interacting with the ERC721Proxy contract. */ export class ERC721ProxyWrapper extends ContractWrapper { public abi: ContractAbi = artifacts.ERC20Proxy.compilerOutput.abi; - private _erc721ProxyContractIfExists?: ERC721ProxyContract; + private _erc721ProxyContractIfExists?: wrappers.ERC721ProxyContract; private _contractAddressIfExists?: string; /** * Instantiate ERC721ProxyWrapper @@ -72,7 +71,7 @@ export class ERC721ProxyWrapper extends ContractWrapper { private _invalidateContractInstance(): void { delete this._erc721ProxyContractIfExists; } - private async _getERC721ProxyContractAsync(): Promise<ERC721ProxyContract> { + private async _getERC721ProxyContractAsync(): Promise<wrappers.ERC721ProxyContract> { if (!_.isUndefined(this._erc721ProxyContractIfExists)) { return this._erc721ProxyContractIfExists; } @@ -80,7 +79,7 @@ export class ERC721ProxyWrapper extends ContractWrapper { artifacts.ERC721Proxy, this._contractAddressIfExists, ); - const contractInstance = new ERC721ProxyContract( + const contractInstance = new wrappers.ERC721ProxyContract( abi, address, this._web3Wrapper.getProvider(), |