streamingfast / substreams

Powerful Blockchain streaming data engine, based on StreamingFast Firehose technology.
Apache License 2.0
159 stars 45 forks source link

`uint32` as value 0 does not show up in GUI #240

Closed DenisCarriere closed 1 year ago

DenisCarriere commented 1 year ago

Most likely just GUI display issue, the data does show up as "0" (which is not null value)

message TransferEvent {
  // trace information
  string transaction = 5;
  int32 status = 6;
  uint32 block_index = 7;
}
Screenshot 2023-06-25 at 9 53 52 PM
    for log in block.logs() {
        log::debug!("block index {}", log.log.block_index);
Screenshot 2023-06-25 at 9 55 00 PM
maoueh commented 1 year ago

This is a quirks of Go JSON renderer and generated code which makes field with default value (0, "", nil, etc.) to not render.

Note sure how involving this will be to workaround.

YaroShkvorets commented 1 year ago

Had the same problem. Dove a bit into it. This fix worked for me: https://github.com/streamingfast/substreams/pull/242

DenisCarriere commented 1 year ago

Perfect, confirms this works 🙇 @YaroShkvorets thanks

image