algorand / go-algorand-sdk

Algorand Golang SDK

Home Page:https://pkg.go.dev/github.com/algorand/go-algorand-sdk/v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Excluding empty values

barnjamin opened this issue · comments

While comparing DryrunRequest output across multiple SDKs, I noticed Go omits some empty values that js/python do not.

Go | JS | Python
image

I'm not sure this is a bug or even important but it does make the resulting msgp output different depending on which SDK is being used.

So far we haven't considered re-serialization as part of the API contract. In go you would have access to these objects and they would have the correct zero values.

Do you think it's important that they show up in the re-serialized objects?

Not particularly, just raised it here so it was on the radar

Closing this because JS and Python are considered out of line here. JS is being improved in algorand/js-algorand-sdk#862