Skip to content

Commit

Permalink
Debug Wormchain Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Oct 25, 2024
1 parent c1a7a92 commit b13aefc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions node/pkg/wormconn/send_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,12 @@ func (c *ClientConn) SignAndBroadcastTx(ctx context.Context, msg sdktypes.Msg) (
return nil, fmt.Errorf("failed to broadcast tx: %w", err)
}

res, err := client.GetTx(ctx, &sdktx.GetTxRequest{Hash: txResp.TxResponse.TxHash})
if err == nil {
fmt.Printf("JOEL - Tx response: %v\n", res.TxResponse)
} else {
fmt.Printf("JOEL - Failed to fetch tx: %v\n", err)
}

return txResp, nil
}

0 comments on commit b13aefc

Please sign in to comment.