rpc: fail invoke.Result unmarshalling on stack unmarshalling error
This commit is contained in:
parent
445cca114a
commit
ef114d6274
1 changed files with 3 additions and 2 deletions
|
@ -270,9 +270,10 @@ func (r *Invoke) UnmarshalJSON(data []byte) error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err == nil {
|
if err != nil {
|
||||||
r.Stack = st
|
return fmt.Errorf("failed to unmarshal stack: %w", err)
|
||||||
}
|
}
|
||||||
|
r.Stack = st
|
||||||
}
|
}
|
||||||
var tx *transaction.Transaction
|
var tx *transaction.Transaction
|
||||||
if len(aux.Transaction) != 0 {
|
if len(aux.Transaction) != 0 {
|
||||||
|
|
Loading…
Reference in a new issue