pyteal icon indicating copy to clipboard operation
pyteal copied to clipboard

Better `set` for `abi.DynamicArray[abi.Byte]`

Open barnjamin opened this issue 3 years ago • 0 comments

Problem

I'd like to put a byte string as the plain TealType.byte in a DynamicArray with set (or some other new method?)

Currently the easiest way I've found is either adding the length manually and calling decode or first creating an abi.String and calling set then byte_array.decode(s.encode())

barnjamin avatar Aug 05 '22 11:08 barnjamin