Skip to content

abi_call should accept NamedArg and itxn arguments. #305

@CiottiGiorgio

Description

@CiottiGiorgio

Problem

When making an ABI C2C call using abi_call, it would be nice to allow to named arguments as the method defines them. Also, it's not possible to pass itxns to an ABI call which completely negates entire classes of use cases.

Example

contract_foo.py

@abimethod
def method(self, *, a: gtxn.PaymentTransaction) -> None:

contract_bar.py

abi_call(ContractFoo.method, a=itxn.Payment(...), app_id=...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions