flow-go-sdk
flow-go-sdk copied to clipboard
GetTransactionResult BlockHeight always 0
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
Thank you for the report. Good catch. We are in fact not getting that data from the AN. Will provide a fix.
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.
Will take a look into that in the next week.
Any updates to this? Just ran into both issues reported here so seems like it's still a WIP?