flow-go-sdk icon indicating copy to clipboard operation
flow-go-sdk copied to clipboard

GetTransactionResult BlockHeight always 0

Open nickdapper opened this issue 2 years ago • 3 comments

Problem

When I call GetTransactionHeight, the BlockHeight field is always zero.

Steps to Reproduce

Following the examples folder using the http package.
Using v0.26.5

Possible cause is here: https://github.com/onflow/flow-go-sdk/blob/master/access/http/convert.go#L367

Not seeing a conversion for the height.

cc @emilic

nickdapper avatar Aug 12 '22 04:08 nickdapper

Thank you for the report. Good catch. We are in fact not getting that data from the AN. Will provide a fix.

devbugging avatar Aug 12 '22 09:08 devbugging

I also noticed that GetCollection always returns an empty list of transactions. Again, this is for the http version.

If I switch over to the grpc method, everything works just fine.

nickdapper avatar Aug 12 '22 14:08 nickdapper

Will take a look into that in the next week.

devbugging avatar Aug 12 '22 14:08 devbugging

Any updates to this? Just ran into both issues reported here so seems like it's still a WIP?

austinkline avatar Sep 26 '22 17:09 austinkline