diff options
author | Fabio Berger <me@fabioberger.com> | 2017-05-30 16:42:39 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-05-30 16:42:39 +0800 |
commit | f2cd368a491fd868b063e4023bba1dc2b395b387 (patch) | |
tree | d2f5d1dbc4e75dbaafc3ed9b6a7ce4f252622ea0 /src/contract_wrappers | |
parent | 5bfc3f8976be50ca5fc6d7a2518e94e48b216af4 (diff) | |
download | dexon-sol-tools-f2cd368a491fd868b063e4023bba1dc2b395b387.tar dexon-sol-tools-f2cd368a491fd868b063e4023bba1dc2b395b387.tar.gz dexon-sol-tools-f2cd368a491fd868b063e4023bba1dc2b395b387.tar.bz2 dexon-sol-tools-f2cd368a491fd868b063e4023bba1dc2b395b387.tar.lz dexon-sol-tools-f2cd368a491fd868b063e4023bba1dc2b395b387.tar.xz dexon-sol-tools-f2cd368a491fd868b063e4023bba1dc2b395b387.tar.zst dexon-sol-tools-f2cd368a491fd868b063e4023bba1dc2b395b387.zip |
Add TokenMetadata type
Diffstat (limited to 'src/contract_wrappers')
-rw-r--r-- | src/contract_wrappers/token_registry_wrapper.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/token_registry_wrapper.ts b/src/contract_wrappers/token_registry_wrapper.ts index 431b0303d..8dd79171e 100644 --- a/src/contract_wrappers/token_registry_wrapper.ts +++ b/src/contract_wrappers/token_registry_wrapper.ts @@ -1,6 +1,6 @@ import * as _ from 'lodash'; import {Web3Wrapper} from '../web3_wrapper'; -import {Token, TokenRegistryContract} from '../types'; +import {Token, TokenRegistryContract, TokenMetadata} from '../types'; import {assert} from '../utils/assert'; import {ContractWrapper} from './contract_wrapper'; import * as TokenRegistryArtifacts from '../artifacts/TokenRegistry.json'; @@ -14,7 +14,7 @@ export class TokenRegistryWrapper extends ContractWrapper { const tokenRegistryContract = contractInstance as TokenRegistryContract; const addresses = await tokenRegistryContract.getTokenAddresses.call(); - const tokenMetadataPromises: Array<Promise<any[]>> = _.map( + const tokenMetadataPromises: Array<Promise<TokenMetadata>> = _.map( addresses, (address: string) => (tokenRegistryContract.getTokenMetaData.call(address)), ); |