Skip to content
New issue

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

algosdk.error.ABITypeError: cannot convert account to an ABI type #362

Open
rocalex opened this issue Jul 18, 2022 · 1 comment
Open

algosdk.error.ABITypeError: cannot convert account to an ABI type #362

rocalex opened this issue Jul 18, 2022 · 1 comment
Labels
bug Something isn't working Team Scytale

Comments

@rocalex
Copy link

rocalex commented Jul 18, 2022

File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/contract.py", line 26, in <module>
    def add(a: abi.DynamicArray[abi.Account]):
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/src/pyteal/pyteal/ast/router.py", line 659, in method
    return wrap(func)
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/src/pyteal/pyteal/ast/router.py", line 653, in wrap
    return self.add_method_handler(
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/src/pyteal/pyteal/ast/router.py", line 573, in add_method_handler
    meth = method_call.method_spec()
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/src/pyteal/pyteal/ast/subroutine.py", line 640, in method_spec
    return sdk_abi.Method.undictify(spec)
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/lib/python3.10/site-packages/algosdk/abi/method.py", line 123, in undictify
    arg_list = [Argument.undictify(arg) for arg in d["args"]]
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/lib/python3.10/site-packages/algosdk/abi/method.py", line 123, in <listcomp>
    arg_list = [Argument.undictify(arg) for arg in d["args"]]
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/lib/python3.10/site-packages/algosdk/abi/method.py", line 192, in undictify
    return Argument(
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/lib/python3.10/site-packages/algosdk/abi/method.py", line 167, in __init__
    self.type = abi.ABIType.from_string(arg_type)
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/lib/python3.10/site-packages/algosdk/abi/base_type.py", line 75, in from_string
    array_arg_type = ABIType.from_string(s[:-2])
  File "/Volumes/DATA/SourceCode/chimerax-org/abi-demo/venv/lib/python3.10/site-packages/algosdk/abi/base_type.py", line 137, in from_string
    raise error.ABITypeError(
algosdk.error.ABITypeError: cannot convert account to an ABI type
@rocalex rocalex added the new-bug Bug report that needs triage label Jul 18, 2022
@jasonpaulos
Copy link
Contributor

Thank you for making us aware of this. This may be because the SDK does not yet support embedding reference types in arrays/tuples.

@algoanne algoanne added bug Something isn't working and removed new-bug Bug report that needs triage labels Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team Scytale
Projects
None yet
Development

No branches or pull requests

3 participants