aboutsummaryrefslogtreecommitdiffstats
path: root/src/contract_wrappers/ether_token_wrapper.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 00:45:20 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 00:45:20 +0800
commita7b2131db77b72379f0d57eaff694d5a925191cd (patch)
treef7c5d443f4bcbd9ee702c8897d1c60a7b6056510 /src/contract_wrappers/ether_token_wrapper.ts
parentf0572679557ebdc6956d079ea2b1f54fd52c2c67 (diff)
downloaddexon-sol-tools-a7b2131db77b72379f0d57eaff694d5a925191cd.tar
dexon-sol-tools-a7b2131db77b72379f0d57eaff694d5a925191cd.tar.gz
dexon-sol-tools-a7b2131db77b72379f0d57eaff694d5a925191cd.tar.bz2
dexon-sol-tools-a7b2131db77b72379f0d57eaff694d5a925191cd.tar.lz
dexon-sol-tools-a7b2131db77b72379f0d57eaff694d5a925191cd.tar.xz
dexon-sol-tools-a7b2131db77b72379f0d57eaff694d5a925191cd.tar.zst
dexon-sol-tools-a7b2131db77b72379f0d57eaff694d5a925191cd.zip
Decode logs args in awaitTransactionMinedAsync
Diffstat (limited to 'src/contract_wrappers/ether_token_wrapper.ts')
-rw-r--r--src/contract_wrappers/ether_token_wrapper.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/ether_token_wrapper.ts b/src/contract_wrappers/ether_token_wrapper.ts
index d31069b22..b86309f90 100644
--- a/src/contract_wrappers/ether_token_wrapper.ts
+++ b/src/contract_wrappers/ether_token_wrapper.ts
@@ -4,7 +4,7 @@ import {ContractWrapper} from './contract_wrapper';
import {TokenWrapper} from './token_wrapper';
import {EtherTokenContract, ZeroExError} from '../types';
import {assert} from '../utils/assert';
-import * as EtherTokenArtifacts from '../artifacts/EtherToken.json';
+import {artifacts} from '../artifacts';
/**
* This class includes all the functionality related to interacting with a wrapped Ether ERC20 token contract.
@@ -76,7 +76,7 @@ export class EtherTokenWrapper extends ContractWrapper {
return this._etherTokenContractIfExists;
}
const contractInstance = await this._instantiateContractIfExistsAsync<EtherTokenContract>(
- EtherTokenArtifacts as any as Artifact,
+ artifacts.EtherTokenArtifact,
);
this._etherTokenContractIfExists = contractInstance as EtherTokenContract;
return this._etherTokenContractIfExists;