We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If a subroutine is declared as
@Subroutine(TealType.none) def txn_checks(txn: abi.Transaction): # ...
and called with
@router.method def payme(ptxn: abi.PaymentTransaction): return Seq( txn_checks(ptxn) # ...
Pyteal will complain with:
pyteal.TealInputError: supplied argument pay at index 0 should have ABI typespec txn but got pay
We should add a check for whether or not the arg_type is a Transaction type and allow more specific Transaction types to be passed here: https://github.com/algorand/pyteal/blob/master/pyteal/ast/subroutine.py#L285
The text was updated successfully, but these errors were encountered:
ahangsu
No branches or pull requests
If a subroutine is declared as
and called with
Pyteal will complain with:
pyteal.TealInputError: supplied argument pay at index 0 should have ABI typespec txn but got pay
We should add a check for whether or not the arg_type is a Transaction type and allow more specific Transaction types to be passed here: https://github.com/algorand/pyteal/blob/master/pyteal/ast/subroutine.py#L285
The text was updated successfully, but these errors were encountered: