Skip to content

Commit

Permalink
deploy: Write validator->committee GAS/NEO transfer to log
Browse files Browse the repository at this point in the history
It's better to observe what's going on, especially with funds.

Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Dec 20, 2023
1 parent d671151 commit 12f95f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/morph/deploy/funds.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ upperLoop:
To: committeeMultiSigAccAddress,
Amount: remGAS,
})

prm.logger.Info("going to transfer all remaining GAS from validator multi-sig account to the committee one",
zap.Stringer("from", validatorMultiSigAccAddress), zap.Stringer("to", committeeMultiSigAccAddress),
zap.Stringer("amount", remGAS))

Check warning on line 179 in pkg/morph/deploy/funds.go

View check run for this annotation

Codecov / codecov/patch

pkg/morph/deploy/funds.go#L177-L179

Added lines #L177 - L179 were not covered by tests
}

var script []byte
Expand All @@ -197,6 +201,10 @@ upperLoop:
}

script = append(script, tx.Script...)

prm.logger.Info("going to transfer all remaining NEO from validator multi-sig account to the committee one",
zap.Stringer("from", validatorMultiSigAccAddress), zap.Stringer("to", committeeMultiSigAccAddress),
zap.Stringer("amount", remNEO))

Check warning on line 207 in pkg/morph/deploy/funds.go

View check run for this annotation

Codecov / codecov/patch

pkg/morph/deploy/funds.go#L205-L207

Added lines #L205 - L207 were not covered by tests
}

if len(script) == 0 {
Expand Down

0 comments on commit 12f95f2

Please sign in to comment.