[#505] morph/container: Do not parse public key in Put event parser

Morph event structures defined in `pkg/morph/event`  should only carry
notification values without any additional interpretation. All logical work
should be concentrated on app-side.

Change data type of `Put.PublicKey` return to byte slice. `ParsePut` doesn't
unmarshal public key from now.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-19 17:16:48 +03:00 committed by Alex Vanin
parent a306eb9ce7
commit a3ac294902
3 changed files with 7 additions and 21 deletions

View file

@ -44,7 +44,7 @@ func (cp *Processor) processContainerPut(put *containerEvent.Put) {
err := cp.morphClient.NotaryInvoke(cp.containerContract, cp.feeProvider.SideChainFee(), putContainerMethod,
cnrData,
put.Signature(),
put.PublicKey().Bytes())
put.PublicKey())
if err != nil {
cp.log.Error("can't invoke new container", zap.Error(err))
}