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

Update voting example #596

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ ignore =

per-file-ignores =
pyteal/compiler/optimizer/__init__.py: F401
examples/application/abi/algobank.py: F403, F405
examples/application/abi/algobank/algobank.py: F403, F405
examples/application/abi/poll/contract.py: F403, F405
examples/application/asset.py: F403, F405
examples/application/opup.py: F403, F405
examples/application/security_token.py: F403, F405
Expand Down
4 changes: 2 additions & 2 deletions docs/abi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -916,12 +916,12 @@ In addition to receiving the approval and clear state programs, the :any:`Router

Here's an example of a complete application that uses the :any:`Router` class:

.. literalinclude:: ../examples/application/abi/algobank.py
.. literalinclude:: ../examples/application/abi/algobank/algobank.py
:language: python

This example uses the :code:`Router.compile_program` method to create the approval program, clear state program, and contract description for the "AlgoBank" contract. The produced :code:`algobank.json` file is below:

.. literalinclude:: ../examples/application/abi/algobank.json
.. literalinclude:: ../examples/application/abi/algobank/algobank.json
:language: json

Calling an ARC-4 Program
Expand Down
Empty file.
Empty file.
Loading