Passing address through Note Field

I would like to pass an address in Note Field to be used in TEAL code. It is possible to “cast” the Note field to an address type in Teal 6?

I tried several encodings but got logic eval error: not an address
Thanks.

You should pass the address as the 32 byte version not the 58 byte version, depending on the sdk you’re using it’ll be something like decodeAddress("ABC123..") to get the 32 byte version.

1 Like