Skip to content

Commit

Permalink
Add debug msg
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Oct 7, 2024
1 parent 9e44d46 commit 74f00ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/pkg/accountant/submit_obs.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,11 +428,15 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse
}

var msg sdktypes.TxMsgData

if err := msg.Unmarshal(data); err != nil {
return nil, fmt.Errorf("failed to unmarshal data: %w", err)
}

if len(msg.MsgResponses) == 0 {

fmt.Println("TXRESP -", txResp)

return nil, fmt.Errorf("msg responses field is empty")
}

Expand Down

0 comments on commit 74f00ac

Please sign in to comment.