diff --git a/pkg/rpc/client/rpc.go b/pkg/rpc/client/rpc.go index 47c3c5219..e08c0f611 100644 --- a/pkg/rpc/client/rpc.go +++ b/pkg/rpc/client/rpc.go @@ -446,6 +446,9 @@ func (c *Client) SignAndPushInvocationTx(script []byte, acc *wallet.Account, sys var err error tx, err := c.CreateTxFromScript(script, acc, sysfee, int64(netfee), cosigners...) + if err != nil { + return txHash, fmt.Errorf("failed to create tx: %w", err) + } if err = acc.SignTx(tx); err != nil { return txHash, fmt.Errorf("failed to sign tx: %w", err) }