diff options
author | Fabio Berger <me@fabioberger.com> | 2017-08-21 20:20:06 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-08-21 20:20:06 +0800 |
commit | 1311dfe7f5fac9b08a83bc4d0eaab7996dad1957 (patch) | |
tree | f734bb86dde3943d97a73ac7ed76f0dae75b8551 /src/contract_wrappers | |
parent | dd6997423f64509f1badfc8b44a63e3cf73db648 (diff) | |
download | dexon-sol-tools-1311dfe7f5fac9b08a83bc4d0eaab7996dad1957.tar dexon-sol-tools-1311dfe7f5fac9b08a83bc4d0eaab7996dad1957.tar.gz dexon-sol-tools-1311dfe7f5fac9b08a83bc4d0eaab7996dad1957.tar.bz2 dexon-sol-tools-1311dfe7f5fac9b08a83bc4d0eaab7996dad1957.tar.lz dexon-sol-tools-1311dfe7f5fac9b08a83bc4d0eaab7996dad1957.tar.xz dexon-sol-tools-1311dfe7f5fac9b08a83bc4d0eaab7996dad1957.tar.zst dexon-sol-tools-1311dfe7f5fac9b08a83bc4d0eaab7996dad1957.zip |
Update artifacts and rename proxy to tokenTransferProxy
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/proxy_wrapper.ts | 4 | ||||
-rw-r--r-- | src/contract_wrappers/token_wrapper.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/contract_wrappers/proxy_wrapper.ts b/src/contract_wrappers/proxy_wrapper.ts index 9deed5231..c69ca7017 100644 --- a/src/contract_wrappers/proxy_wrapper.ts +++ b/src/contract_wrappers/proxy_wrapper.ts @@ -1,6 +1,6 @@ import * as _ from 'lodash'; import {ContractWrapper} from './contract_wrapper'; -import * as ProxyArtifacts from '../artifacts/Proxy.json'; +import * as TokenTransferProxyArtifacts from '../artifacts/TokenTransferProxy.json'; import {ProxyContract} from '../types'; /** @@ -34,7 +34,7 @@ export class ProxyWrapper extends ContractWrapper { if (!_.isUndefined(this._proxyContractIfExists)) { return this._proxyContractIfExists; } - const contractInstance = await this._instantiateContractIfExistsAsync((ProxyArtifacts as any)); + const contractInstance = await this._instantiateContractIfExistsAsync((TokenTransferProxyArtifacts as any)); this._proxyContractIfExists = contractInstance as ProxyContract; return this._proxyContractIfExists; } diff --git a/src/contract_wrappers/token_wrapper.ts b/src/contract_wrappers/token_wrapper.ts index 9b529f64f..ae1c7fa43 100644 --- a/src/contract_wrappers/token_wrapper.ts +++ b/src/contract_wrappers/token_wrapper.ts @@ -7,7 +7,7 @@ import {eventUtils} from '../utils/event_utils'; import {constants} from '../utils/constants'; import {ContractWrapper} from './contract_wrapper'; import * as TokenArtifacts from '../artifacts/Token.json'; -import * as ProxyArtifacts from '../artifacts/Proxy.json'; +import * as TokenTransferProxyArtifacts from '../artifacts/TokenTransferProxy.json'; import {subscriptionOptsSchema} from '../schemas/subscription_opts_schema'; import {indexFilterValuesSchema} from '../schemas/index_filter_values_schema'; import { @@ -248,7 +248,7 @@ export class TokenWrapper extends ContractWrapper { const networkIdIfExists = await this._web3Wrapper.getNetworkIdIfExistsAsync(); const proxyNetworkConfigsIfExists = _.isUndefined(networkIdIfExists) ? undefined : - (ProxyArtifacts as any).networks[networkIdIfExists]; + (TokenTransferProxyArtifacts as any).networks[networkIdIfExists]; if (_.isUndefined(proxyNetworkConfigsIfExists)) { throw new Error(ZeroExError.ContractNotDeployedOnNetwork); } |