Skip to content

[Bug]: Incorrect Python example under subsection Byte arrays of Encoding and Decoding page #337

@uhudo

Description

@uhudo

Description

Python example under subsection Byte arrays of Encoding and Decoding page is not showing the correct code at: https://dev.algorand.co/concepts/smart-contracts/storage/encoding-decoding/#byte-arrays

Steps to Reproduce

  1. Go to https://dev.algorand.co/concepts/smart-contracts/storage/encoding-decoding/#byte-arrays
  2. Select Python

Expected Behavior

Likely the example should be:
encoded_str = "SGksIEknbSBkZWNvZGVkIGZyb20gYmFzZTY0"
decoded_str = base64.b64decode(encoded_str).decode("utf-8")
print(decoded_str)

from https://github.com/algorand/py-algorand-sdk/blob/examples/examples/codec.py#L24-L27

Screenshots

Image

Device Info

Independent of device

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions