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/contract_wrappers/erc721_proxy_wrapper.ts | |
parent | 8f0ceaf1d8261e9779213276372f4690cdf3426c (diff) | |
download | dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.gz dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.bz2 dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.lz dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.xz dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.tar.zst dexon-sol-tools-2bd7b0f66bd28792281ba025cf005c666e7f767e.zip |
update contract_wrappers to use new artifacts and abi-gen wrappers packages
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 | 11 |
1 files changed, 6 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 2472d512b..963d5b40f 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts @@ -1,4 +1,5 @@ -import { artifacts, wrappers } from '@0xproject/contracts'; +import { ERC721ProxyContract } from '@0xproject/abi-gen-wrappers'; +import { ERC721Proxy } from '@0xproject/contract-artifacts'; import { AssetProxyId } from '@0xproject/types'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; import { ContractAbi } from 'ethereum-types'; @@ -12,9 +13,9 @@ import { ContractWrapper } from './contract_wrapper'; * This class includes the functionality related to interacting with the ERC721Proxy contract. */ export class ERC721ProxyWrapper extends ContractWrapper { - public abi: ContractAbi = artifacts.ERC20Proxy.compilerOutput.abi; + public abi: ContractAbi = ERC721Proxy.compilerOutput.abi; public address: string; - private _erc721ProxyContractIfExists?: wrappers.ERC721ProxyContract; + private _erc721ProxyContractIfExists?: ERC721ProxyContract; /** * Instantiate ERC721ProxyWrapper * @param web3Wrapper Web3Wrapper instance to use @@ -62,11 +63,11 @@ export class ERC721ProxyWrapper extends ContractWrapper { private _invalidateContractInstance(): void { delete this._erc721ProxyContractIfExists; } - private _getERC721ProxyContract(): wrappers.ERC721ProxyContract { + private _getERC721ProxyContract(): ERC721ProxyContract { if (!_.isUndefined(this._erc721ProxyContractIfExists)) { return this._erc721ProxyContractIfExists; } - const contractInstance = new wrappers.ERC721ProxyContract( + const contractInstance = new ERC721ProxyContract( this.abi, this.address, this._web3Wrapper.getProvider(), |