Closed bartolomej closed 2 months ago
Functions for retrieving full block information (GetBlockById, GetBlockByHeight, GetLatestBlock) don't implement conversion from flowgo.Payload to sdk.BlockPayload, but instead just return an empty sdk.BlockPayload struct.
GetBlockById
GetBlockByHeight
GetLatestBlock
flowgo.Payload
sdk.BlockPayload
See example: https://github.com/onflow/flow-emulator/blame/799f57c037f3bd33acdd4e57a4d1b55ee58fc5d9/adapters/sdk.go#L179-L186
Use SDK adapter and try retrieving block payload (e.g. collection guarantees).
SDK adapter should support retrieval of block payloads.
I'm playing around with building a revamped web-based playground. This was proposed in the grant: https://github.com/onflow/developer-grants/issues/260.
Problem
Functions for retrieving full block information (
GetBlockById
,GetBlockByHeight
,GetLatestBlock
) don't implement conversion fromflowgo.Payload
tosdk.BlockPayload
, but instead just return an emptysdk.BlockPayload
struct.See example: https://github.com/onflow/flow-emulator/blame/799f57c037f3bd33acdd4e57a4d1b55ee58fc5d9/adapters/sdk.go#L179-L186
Steps to Reproduce
Use SDK adapter and try retrieving block payload (e.g. collection guarantees).
Acceptance Criteria
SDK adapter should support retrieval of block payloads.
Context
I'm playing around with building a revamped web-based playground. This was proposed in the grant: https://github.com/onflow/developer-grants/issues/260.