Add contractWrappers.erc20Proxy.getproxyIdAsync
This commit is contained in:
@@ -19,6 +19,15 @@ export class ERC20ProxyWrapper extends ContractWrapper {
|
|||||||
super(web3Wrapper, networkId);
|
super(web3Wrapper, networkId);
|
||||||
this._contractAddressIfExists = contractAddressIfExists;
|
this._contractAddressIfExists = contractAddressIfExists;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Get the 4 bytes ID of this asset proxy
|
||||||
|
* @return Proxy id
|
||||||
|
*/
|
||||||
|
public async getProxyIdAsync(): Promise<string> {
|
||||||
|
const ERC20ProxyContractInstance = await this._getERC20ProxyContractAsync();
|
||||||
|
const proxyId = await ERC20ProxyContractInstance.getProxyId.callAsync();
|
||||||
|
return proxyId;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* Check if the Exchange contract address is authorized by the ERC20Proxy contract.
|
* Check if the Exchange contract address is authorized by the ERC20Proxy contract.
|
||||||
* @param exchangeContractAddress The hex encoded address of the Exchange contract to call.
|
* @param exchangeContractAddress The hex encoded address of the Exchange contract to call.
|
||||||
|
|||||||
Reference in New Issue
Block a user