aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-30 04:11:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-30 04:11:22 +0800
commitfd242a1e0620fdff535934e241720bbe42b276dd (patch)
tree0093f1ddd8e6b435b90551fe5d806030c95b1f31
parent83eeeb85b2add3648bb27f811d8e762467652836 (diff)
downloaddexon-sol-tools-fd242a1e0620fdff535934e241720bbe42b276dd.tar
dexon-sol-tools-fd242a1e0620fdff535934e241720bbe42b276dd.tar.gz
dexon-sol-tools-fd242a1e0620fdff535934e241720bbe42b276dd.tar.bz2
dexon-sol-tools-fd242a1e0620fdff535934e241720bbe42b276dd.tar.lz
dexon-sol-tools-fd242a1e0620fdff535934e241720bbe42b276dd.tar.xz
dexon-sol-tools-fd242a1e0620fdff535934e241720bbe42b276dd.tar.zst
dexon-sol-tools-fd242a1e0620fdff535934e241720bbe42b276dd.zip
Fix a typo in authorized
-rw-r--r--src/contract_wrappers/proxy_wrapper.ts2
-rw-r--r--src/types.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/contract_wrappers/proxy_wrapper.ts b/src/contract_wrappers/proxy_wrapper.ts
index 18c6fdd23..da4f55320 100644
--- a/src/contract_wrappers/proxy_wrapper.ts
+++ b/src/contract_wrappers/proxy_wrapper.ts
@@ -22,7 +22,7 @@ export class ProxyWrapper extends ContractWrapper {
*/
public async isAuthorizedAsync(exchangeContractAddress: string): Promise<boolean> {
const proxyContractInstance = await this._getTokenRegistryContractAsync();
- const isAuthorized = await proxyContractInstance.authrized.call(exchangeContractAddress);
+ const isAuthorized = await proxyContractInstance.authorized.call(exchangeContractAddress);
return isAuthorized;
}
private async _getTokenRegistryContractAsync(): Promise<ProxyContract> {
diff --git a/src/types.ts b/src/types.ts
index f37cb73f0..2af778677 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -149,7 +149,7 @@ export interface EtherTokenContract extends ContractInstance {
}
export interface ProxyContract extends ContractInstance {
- authrized: {
+ authorized: {
call: (address: string) => Promise<boolean>;
};
}