Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1790 from bandprotocol/fix-dataset-to-rawreports
Browse files Browse the repository at this point in the history
fix: changed data_set field to raw_reports in reports scan
  • Loading branch information
prin-r authored May 28, 2020
2 parents bd6facd + 90d94dd commit c4aabbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scan/src/components/TxIndexPageTable.re
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ let renderReport = (report: TxSub.Msg.Report.t) => {
tableWidth=480
headers=["EXTERNAL ID", "VALUE"]
rows={
report.dataSet
report.rawReports
|> Belt_List.map(_, rawReport =>
[
KVTable.Value(rawReport.externalDataID |> string_of_int),
Expand Down
4 changes: 2 additions & 2 deletions scan/src/subscriptions/TxSub.re
Original file line number Diff line number Diff line change
Expand Up @@ -221,15 +221,15 @@ module Msg = {
module Report = {
type t = {
requestID: ID.Request.t,
dataSet: list(RawDataReport.t),
rawReports: list(RawDataReport.t),
validator: Address.t,
reporter: Address.t,
};

let decode = json =>
JsonUtils.Decode.{
requestID: json |> field("request_id", ID.Request.fromJson),
dataSet: json |> field("data_set", list(RawDataReport.decode)),
rawReports: json |> field("raw_reports", list(RawDataReport.decode)),
validator: json |> field("validator", string) |> Address.fromBech32,
reporter: json |> field("reporter", string) |> Address.fromBech32,
};
Expand Down

0 comments on commit c4aabbd

Please sign in to comment.