From 8aa290c8c34d5e5dae9c2a315bfeba808c032b5c Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 30 Sep 2021 17:36:56 +0300 Subject: [PATCH] [#627] processors/netmap: Read address of contract from client wrapper Signed-off-by: Alex Vanin --- pkg/innerring/processors/netmap/process_cleanup.go | 2 +- pkg/innerring/processors/netmap/process_peers.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/innerring/processors/netmap/process_cleanup.go b/pkg/innerring/processors/netmap/process_cleanup.go index 61290de2..5534fb8b 100644 --- a/pkg/innerring/processors/netmap/process_cleanup.go +++ b/pkg/innerring/processors/netmap/process_cleanup.go @@ -30,7 +30,7 @@ func (np *Processor) processNetmapCleanupTick(ev netmapCleanupTick) { } else { // use epoch as TX nonce to prevent collisions err = np.netmapClient.Morph().NotaryInvoke( - np.netmapContract, + np.netmapClient.ContractAddress(), 0, uint32(ev.epoch), netmapEvent.UpdateStateNotaryEvent, diff --git a/pkg/innerring/processors/netmap/process_peers.go b/pkg/innerring/processors/netmap/process_peers.go index 391e7a3c..142cc570 100644 --- a/pkg/innerring/processors/netmap/process_peers.go +++ b/pkg/innerring/processors/netmap/process_peers.go @@ -73,7 +73,7 @@ func (np *Processor) processAddPeer(ev netmapEvent.AddPeer) { // create new notary request with the original nonce err = np.netmapClient.Morph().NotaryInvoke( - np.netmapContract, + np.netmapClient.ContractAddress(), 0, nr.MainTransaction.Nonce, netmapEvent.AddPeerNotaryEvent,