rpc: fail invoke.Result unmarshalling on stack unmarshalling error

This commit is contained in:
Anna Shaleva 2022-07-08 16:32:00 +03:00
parent 445cca114a
commit ef114d6274

View file

@ -270,9 +270,10 @@ func (r *Invoke) UnmarshalJSON(data []byte) error {
}
}
}
if err == nil {
r.Stack = st
if err != nil {
return fmt.Errorf("failed to unmarshal stack: %w", err)
}
r.Stack = st
}
var tx *transaction.Transaction
if len(aux.Transaction) != 0 {