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
Modify and release a new version of https://github.com/algorand/msgpack-javascript with support for decoding & encoding maps with object keys. Then this SDK can use the new version of that library to properly encode & decode LedgerStateDeltas.
The text was updated successfully, but these errors were encountered:
I noticed getLedgerStateDelta and getTransactionGroupLedgerStateDeltasForRound changed back to number, was this intentional or related to the decoding issue?
Problem
The
LedgerStateDelta
object as returned from algod has the fieldTxleases
which is a map with an object key, as show in https://github.com/algorand/go-algorand/blob/8e2e2e4f4f714e40d6156ed77cbd1b4b4763d11a/ledger/ledgercore/statedelta.go#L105Unfortunately if this object is present, this SDK will be unable to decode any part of the msgpack state delta, since object keys are not supported by our msgpack library, https://github.com/algorand/msgpack-javascript.
Solution
Modify and release a new version of https://github.com/algorand/msgpack-javascript with support for decoding & encoding maps with object keys. Then this SDK can use the new version of that library to properly encode & decode
LedgerStateDelta
s.The text was updated successfully, but these errors were encountered: