We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defined output type with PyTeal ABI to return a list of tuple, like:
output
list
tuple
output: abi.StaticArray[abi.Tuple2[abi.Address, abi.String], Literal[2]],
The decoded output returns a list of list instead.
algod
py-algorand-sdk
pyteal
/feature/abi
Python list of tuple.
[('JUYTZVK2PL42FJDBLDUSI377RCABBRVICQQKGF73PXG7C2WSVG7JXYZ7SQ', 'foo'), ('MTFEO2IFDY23HL6JBV437WTDOK2QGEFCOKNTQT353KMRJUGXL3GKQZ3FG4', 'spam')]
Python list of list.
[[JUYTZVK2PL42FJDBLDUSI377RCABBRVICQQKGF73PXG7C2WSVG7JXYZ7SQ', 'foo'], ['MTFEO2IFDY23HL6JBV437WTDOK2QGEFCOKNTQT353KMRJUGXL3GKQZ3FG4', 'spam']]
The text was updated successfully, but these errors were encountered:
Would also be useful to decode ABI bytes types (ByteType, ArrayDynamicType, ArrayStaticType) to Python bytes instead of int / list[int].
ByteType
ArrayDynamicType
ArrayStaticType
bytes
int
list[int]
Sorry, something went wrong.
No branches or pull requests
Subject of the issue
Defined
output
type with PyTeal ABI to return alist
oftuple
, like:The decoded output returns a
list
oflist
instead.Your environment
algod
, 3.7.2.stable [rel/stable] (commit #e2f78420)py-algorand-sdk
, v1.15.0pyteal
, v0.13.0 (pointing to current/feature/abi
branch)Steps to reproduce
Expected behaviour
Python
list
oftuple
.Actual behaviour
Python
list
oflist
.The text was updated successfully, but these errors were encountered: