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

Added tests around the voting ballot contract. #502

Merged
merged 6 commits into from
Nov 8, 2023
Merged

Conversation

ebadiere
Copy link
Contributor

Implementation of the Voting example

Related issue(s):

Fixes #488

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@github-actions
Copy link

github-actions bot commented Oct 18, 2023

Test Results

  15 files  +  1    65 suites  +2   8m 14s ⏱️ +28s
195 tests ±  0  188 ✔️  - 1  6 💤 ±0  1 +1 
205 runs  +10  198 ✔️ +9  6 💤 ±0  1 +1 

For more details on these failures, see this check.

Results for commit fac6a73. ± Comparison against base commit f19ed6d.

♻️ This comment has been updated with latest results.

test/solidity/voting/Ballot.js Outdated Show resolved Hide resolved
test/solidity/voting/Ballot.js Show resolved Hide resolved
hardhat.config.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good but let's improve the accounts env variable layout

TEST_SETUP.md Outdated
@@ -30,8 +30,12 @@
| `OPERATOR_KEY_A` | This is the `DER Encoded Private Key` which can be found in your account portal. |
| `HEX_PRIVATE_KEY_A` | This is the `HEX Encoded Private Key` which can be found in your account portal. |
| `HEX_PRIVATE_KEY_B` | This is the `HEX Encoded Private Key` which can be found in your account portal. |
| `HEX_PRIVATE_KEY_C` | This is the `HEX Encoded Private Key` which can be found in your account portal. This key is used in the voting example. |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't sustainable.
At this point this env variable should be an array.
Can you explore using a HEX_PRIVATE_KEYS that holds a list of accounts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -0,0 +1,157 @@
// SPDX-License-Identifier: GPL-3.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All licenses should be Apache 2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ebadiere ebadiere self-assigned this Nov 7, 2023
@ebadiere ebadiere added the enhancement New feature or request label Nov 7, 2023
@ebadiere ebadiere added this to the 0.7.0 milestone Nov 7, 2023
Copy link
Collaborator

@Nana-EC Nana-EC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

@ebadiere ebadiere merged commit 2abf7b6 into main Nov 8, 2023
22 of 25 checks passed
@ebadiere ebadiere deleted the 488-voting-example branch November 8, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Solidity Support] Voting example
2 participants