From 24ad60e1c87a0c7a93cb59da780274b2d81d788a Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 19 May 2021 18:41:33 +0300 Subject: [PATCH] [#505] ir/container: Change the way to approve container put event Call `Put` method on the wrapper over the Container contract's client directly from `Processor.approvePutContainer`. Signed-off-by: Leonard Lyubich --- pkg/innerring/processors/container/process_container.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/innerring/processors/container/process_container.go b/pkg/innerring/processors/container/process_container.go index 9ab31fcf2..75bbce54d 100644 --- a/pkg/innerring/processors/container/process_container.go +++ b/pkg/innerring/processors/container/process_container.go @@ -11,7 +11,6 @@ import ( const ( deleteContainerMethod = "delete" - putContainerMethod = "put" ) // Process new container from the user by checking container sanity @@ -53,10 +52,9 @@ func (cp *Processor) checkPutContainer(e *containerEvent.Put) error { } func (cp *Processor) approvePutContainer(e *containerEvent.Put) { - err := cp.morphClient.NotaryInvoke(cp.containerContract, cp.feeProvider.SideChainFee(), putContainerMethod, - e.Container(), - e.Signature(), - e.PublicKey()) + // FIXME: here we should try notary invoke + // FIXME: here we should bind key to owner if needed + err := cp.cnrClient.Put(e.Container(), e.PublicKey(), e.Signature()) if err != nil { cp.log.Error("could not approve put container", zap.String("error", err.Error()),