From aae81729934196b2fd1f58aefc57a8a7dd878dc6 Mon Sep 17 00:00:00 2001 From: ssallam Date: Sun, 19 Jan 2020 10:41:12 +0100 Subject: [PATCH] Fix errors. --- src/keeper/Keeper.ts | 17 ++++++++--------- .../EscrowAccessSecretStoreTemplate.ts | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/keeper/Keeper.ts b/src/keeper/Keeper.ts index e1e37e5..586c918 100644 --- a/src/keeper/Keeper.ts +++ b/src/keeper/Keeper.ts @@ -95,18 +95,17 @@ export class Keeper extends Instantiable { } // Templates keeper.instances.escrowAccessSecretStoreTemplate = new EscrowAccessSecretStoreTemplate( - keeper.instances.templateStoreManager, - keeper.instances.agreementStoreManager, - keeper.instances.didRegistry, - keeper.instances.conditions + keeper.templateStoreManager, + keeper.agreementStoreManager, + keeper.didRegistry, + keeper.conditions ) keeper.instances.escrowComputeExecutionTemplate = new EscrowComputeExecutionTemplate( - keeper.instances.templateStoreManager, - keeper.instances.agreementStoreManager, - keeper.instances.didRegistry, - keeper.instances.conditions + keeper.templateStoreManager, + keeper.agreementStoreManager, + keeper.didRegistry, + keeper.conditions ) - // Conditions keeper.templates = { escrowAccessSecretStoreTemplate: keeper.instances.escrowAccessSecretStoreTemplate, diff --git a/src/keeper/contracts/templates/EscrowAccessSecretStoreTemplate.ts b/src/keeper/contracts/templates/EscrowAccessSecretStoreTemplate.ts index bbcb6a5..ad6e1ef 100644 --- a/src/keeper/contracts/templates/EscrowAccessSecretStoreTemplate.ts +++ b/src/keeper/contracts/templates/EscrowAccessSecretStoreTemplate.ts @@ -1,7 +1,7 @@ import { AgreementTemplateBase, Conditions } from './AgreementTemplateBase' import { escrowAccessServiceAgreementTemplate } from './EscrowAccess.serviceAgreementTemplate' import { AgreementStoreManager, TemplateStoreManager } from '../managers' -import DIDRegistry from '../DIDRegistry'; +import DIDRegistry from '../DIDRegistry' export class EscrowAccessSecretStoreTemplate extends AgreementTemplateBase {