Skip to content

Commit

Permalink
Update Deprecated Msg Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmith-2019 committed Oct 7, 2024
1 parent e6b203f commit 7a06d9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/pkg/accountant/submit_obs.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,12 @@ func GetObservationResponses(txResp *sdktx.BroadcastTxResponse) (map[string]Obse
return nil, fmt.Errorf("failed to unmarshal data: %w", err)
}

if len(msg.Data) == 0 {
return nil, fmt.Errorf("data field is empty")
if len(msg.MsgResponses) == 0 {
return nil, fmt.Errorf("msg responses field is empty")
}

var execContractResp wasmdtypes.MsgExecuteContractResponse
if err := execContractResp.Unmarshal(msg.Data[0].Data); err != nil {
if err := execContractResp.Unmarshal(msg.MsgResponses[0].Value); err != nil {
return nil, fmt.Errorf("failed to unmarshal ExecuteContractResponse: %w", err)
}

Expand Down

0 comments on commit 7a06d9b

Please sign in to comment.