Skip to content

InnerTxnBuilder ABI arguments #342

@barnjamin

Description

@barnjamin

Problem

It should be straightforward to construct a transaction or group of transactions that follow ABI spec.

At the moment all args must be manually passed with the correct encoding including remembering to set reference arguments correctly.

Solution

Something like

#...
(arg1 := abi.Uint64).set(Int(10)),
(arg2 := abi.Account).set(Txn.accounts[0]),
(arg3 := abi.String).set(Bytes("lol")),
InnerTxnBuilder.Begin(),
InnerTxnBuilder.MethodCall(app_id, method_def, [arg1, arg2, arg3]),
InnerTxnBuilder.Next(),
#...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions