The txns property is {} in several blocks (e.g. 329923). Calling: let block = await algodClient.block(i);
Results in the following error: TypeError: Cannot read property 'length' of undefined in algod.js.
Suggested fix is to check for this case before getting the upper limit of the for loop: if (res.statusCode === 200 && typeof res.body.txns.transactions !== "undefined") {
Cool and there are other functions that might need the same.
Just curious, what is special/different about these blocks?
As a side note, since I have your ear. I cannot roll up a release of an CLI app that incorporates the Go SDK using ‘dep’ because algorand/go-codec is still private on Github. I see the source in the vendor/ subdirectory. However since it’s a dependency in the SDK’s Gopkg.toml, then ‘dep’ dies. I’m not sure what enhancements you’ve made over ugorji/go-codec, hopefully you’ll consider releasing it.