Skip to content

Cannot using an AVMBytes teal template value when deploying an app via app lab #513

@neilcampbell

Description

@neilcampbell

HelloWorldContract.arc56.json

Subject of the issue

When deploying an application using app lab and that application uses an AVMBytes TEAL template variable, the base64 you enter is interpreted as an utf8 string.

The attached ARC56 has an address, AVMBytes and byte[32] TEAL template params.

The decompiled TEAL should show the
ACC_ADDR as bytec_1
ACC_AVM_BYTES as bytec_2
ACC_ARC4_BYTES as bytec_3

bytec_2 should match bytec_3 (if you enter the same base64 value as the input), however they show as below

bytec_1 // addr Y76M3MSY6DKBRHBL7C3NNDXGS5IIMQVQVUAB6MP4XEMMGVF2QWNPL226CA
concat
log
intc_0 // 1
return
label4:
bytec_0 // 0x151f7c75
bytec_2 // "x/zNsljw1BicK/i21o7ml1CGQrCtAB8x/LkYw1S6hZo="
concat
log
intc_0 // 1
return
label5:
bytec_0 // 0x151f7c75
bytec_3 // addr Y76M3MSY6DKBRHBL7C3NNDXGS5IIMQVQVUAB6MP4XEMMGVF2QWNPL226CA
concat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions