[#627] processors/netmap: Read address of contract from client wrapper

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-09-30 17:36:56 +03:00 committed by Alex Vanin
parent 8fc1505351
commit 8aa290c8c3
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,