You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing the algodClient.block() through modelsv2.BlockResponse.from_obj_for_encoding() should produce an object in which the block property is a Block and not a BlockHeader.
Actual behaviour
Instead, the block property of the BlockResponse class is typed as a BlockHeader and thus does not allow accessing the rest of the block contents.
Subject of the issue
The BlockResponse.from_obj_for_encoding() returns a class object that has incorrect typing.
Steps to reproduce
Expected behaviour
Passing the
algodClient.block()
throughmodelsv2.BlockResponse.from_obj_for_encoding()
should produce an object in which theblock
property is aBlock
and not aBlockHeader
.Actual behaviour
Instead, the
block
property of theBlockResponse
class is typed as aBlockHeader
and thus does not allow accessing the rest of the block contents.js-algorand-sdk/src/client/v2/algod/models/types.ts
Line 1877 in e947e33
The text was updated successfully, but these errors were encountered: