Skip to content

Commit

Permalink
fix: wasm next seq recv type conversion method (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
viveksharmapoudel authored Sep 11, 2023
1 parent 058abd8 commit fe19e80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion relayer/chains/wasm/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,14 +732,18 @@ func (ap *WasmProvider) QueryNextSeqRecv(ctx context.Context, height int64, chan
if err != nil {
return nil, err
}
var seq uint64
if err := json.Unmarshal(nextSeqRecv.Data, &seq); err != nil {
return nil, err
}

proof, err := ap.QueryWasmProof(ctx, common.MustHexStrToBytes(STORAGEKEY__NextSequenceReceive), height)
if err != nil {
return nil, err
}

return &chantypes.QueryNextSequenceReceiveResponse{
NextSequenceReceive: sdk.BigEndianToUint64(nextSeqRecv.Data.Bytes()),
NextSequenceReceive: seq,
Proof: proof,
ProofHeight: clienttypes.NewHeight(0, uint64(height)),
}, nil
Expand Down

0 comments on commit fe19e80

Please sign in to comment.