Closed sweep-ai[bot] closed 1 year ago
GitHub actions yielded the following error.
##[group]Run python -m black --check .
[36;1mpython -m black --check .[0m
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.7.17/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.7.17/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.7.17/x64/lib
##[endgroup]
##[error]Process completed with exit code 1.
The command that failed is python -m black --check .
.
There are a lot of errors. This is likely due to a small parsing issue or a missing import with the files changed in the PR.
This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests.
I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR.
Improved Import Statement
The import statement in the main code file (client_code/forms/routes/ballot/Read/__init__.py
) has been extended to include a new resource, manager
. This change makes additional functionalities available for use in the project.
New Link Component
We've added a new link component labeled as "View on Blockchain Explorer" to the form template (client_code/forms/routes/ballot/Read/form_template.yaml
). This provides users with a direct pathway to access and verify data on the Blockchain Explorer, enhancing the user experience.
Updated Initialization Method
The initialization method in the main file (client_code/forms/routes/ballot/Read/__init__.py
) has been updated. It now assigns a URL to the newly added explorer_link
component, ensuring this new component is effectively linked to the Blockchain Explorer.
Description
This PR adds a blockchain explorer link to the ballot read form in the decentralized voting application. The link allows users to view the corresponding transaction on the blockchain explorer. The link is constructed using a base URL and the contract address obtained from the manager service.
Summary of Changes
form_template.yaml
file underclient_code/forms/routes/ballot/Read
to add a new component for the explorer link.__init__.py
file underclient_code/forms/routes/ballot/Read
to construct the explorer link using the base URL and contract address from the manager service.Please review and merge this PR. Thank you!
Fixes #65.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: