[#627] processors/netmap: Read address of contract from client wrapper
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
8fc1505351
commit
8aa290c8c3
2 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ func (np *Processor) processNetmapCleanupTick(ev netmapCleanupTick) {
|
||||||
} else {
|
} else {
|
||||||
// use epoch as TX nonce to prevent collisions
|
// use epoch as TX nonce to prevent collisions
|
||||||
err = np.netmapClient.Morph().NotaryInvoke(
|
err = np.netmapClient.Morph().NotaryInvoke(
|
||||||
np.netmapContract,
|
np.netmapClient.ContractAddress(),
|
||||||
0,
|
0,
|
||||||
uint32(ev.epoch),
|
uint32(ev.epoch),
|
||||||
netmapEvent.UpdateStateNotaryEvent,
|
netmapEvent.UpdateStateNotaryEvent,
|
||||||
|
|
|
@ -73,7 +73,7 @@ func (np *Processor) processAddPeer(ev netmapEvent.AddPeer) {
|
||||||
|
|
||||||
// create new notary request with the original nonce
|
// create new notary request with the original nonce
|
||||||
err = np.netmapClient.Morph().NotaryInvoke(
|
err = np.netmapClient.Morph().NotaryInvoke(
|
||||||
np.netmapContract,
|
np.netmapClient.ContractAddress(),
|
||||||
0,
|
0,
|
||||||
nr.MainTransaction.Nonce,
|
nr.MainTransaction.Nonce,
|
||||||
netmapEvent.AddPeerNotaryEvent,
|
netmapEvent.AddPeerNotaryEvent,
|
||||||
|
|
Loading…
Reference in a new issue