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
It is not possible to decode a Map object from JSON or msgpack, and the value type should be an object, not a byte array.
It remains to be seen whether the best approach is to fully type stateproof objects, or reference then generically, but something must be done to improve this.
Additionally, the stateproof types use integers as map keys, so it will be difficult to get these to encode and decode properly.
The text was updated successfully, but these errors were encountered:
Currently the stateproof transaction fields are incorrect:
js-algorand-sdk/src/transaction.ts
Lines 209 to 211 in 6fdfa11
stateProof
andstateProofMessage
are not byte arrays, the are objects.Additionally, the block header type contains an invalid representation of state proof tracking info:
js-algorand-sdk/src/types/blockHeader.ts
Line 80 in 6fdfa11
It is not possible to decode a
Map
object from JSON or msgpack, and the value type should be an object, not a byte array.It remains to be seen whether the best approach is to fully type stateproof objects, or reference then generically, but something must be done to improve this.
Additionally, the stateproof types use integers as map keys, so it will be difficult to get these to encode and decode properly.
The text was updated successfully, but these errors were encountered: