diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index c8a13a0c2..fcc6aebd6 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -100,6 +100,10 @@ func (c *Client) Invoke(contract util.Uint160, fee fixedn.Fixed8, method string, return err } + if resp.State != HaltState { + return &NotHaltStateError{state: resp.State, exception: resp.FaultException} + } + if len(resp.Script) == 0 { return errEmptyInvocationScript }