Cleanup registry.

This commit is contained in:
Spencer Ofwiti 2021-06-14 17:10:40 +03:00
parent 23d262303a
commit f6e709373e

View File

@ -33,7 +33,7 @@ export class RegistryService {
return new Promise(async (resolve, reject) => {
if (!RegistryService.tokenRegistry) {
const registry = await RegistryService.getRegistry();
const tokenRegistryAddress = await RegistryService.registry.getContractAddressByName(
const tokenRegistryAddress = await registry.getContractAddressByName(
'TokenRegistry'
);
if (!tokenRegistryAddress) {
@ -50,7 +50,7 @@ export class RegistryService {
return new Promise(async (resolve, reject) => {
if (!RegistryService.accountRegistry) {
const registry = await RegistryService.getRegistry();
const accountRegistryAddress = await RegistryService.registry.getContractAddressByName(
const accountRegistryAddress = await registry.getContractAddressByName(
'AccountRegistry'
);