diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-09 16:33:37 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-07-09 17:13:21 +0800 |
commit | 813824868ea1e091974a672ce8a63093f643c680 (patch) | |
tree | fa52c479bcdc38a075d1c16613730a3c846dfc14 /packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts | |
parent | 028184947feca7de420929f587eca9662b3bb1af (diff) | |
download | dexon-sol-tools-813824868ea1e091974a672ce8a63093f643c680.tar dexon-sol-tools-813824868ea1e091974a672ce8a63093f643c680.tar.gz dexon-sol-tools-813824868ea1e091974a672ce8a63093f643c680.tar.bz2 dexon-sol-tools-813824868ea1e091974a672ce8a63093f643c680.tar.lz dexon-sol-tools-813824868ea1e091974a672ce8a63093f643c680.tar.xz dexon-sol-tools-813824868ea1e091974a672ce8a63093f643c680.tar.zst dexon-sol-tools-813824868ea1e091974a672ce8a63093f643c680.zip |
Return AssetProxyId instead of string from proxy.getProxyIdAsync()
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts')
-rw-r--r-- | packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts index 883d7c4d6..68bdc2de7 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts @@ -3,6 +3,7 @@ import { ContractAbi } from 'ethereum-types'; import * as _ from 'lodash'; import { artifacts } from '../artifacts'; +import { AssetProxyId } from '../types'; import { assert } from '../utils/assert'; import { ContractWrapper } from './contract_wrapper'; @@ -23,9 +24,9 @@ export class ERC20ProxyWrapper extends ContractWrapper { * Get the 4 bytes ID of this asset proxy * @return Proxy id */ - public async getProxyIdAsync(): Promise<string> { + public async getProxyIdAsync(): Promise<AssetProxyId> { const ERC20ProxyContractInstance = await this._getERC20ProxyContractAsync(); - const proxyId = await ERC20ProxyContractInstance.getProxyId.callAsync(); + const proxyId = (await ERC20ProxyContractInstance.getProxyId.callAsync()) as AssetProxyId; return proxyId; } /** |