-
Notifications
You must be signed in to change notification settings - Fork 53
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
Conversation
Signed-off-by: ebadiere <[email protected]>
Test Results 15 files + 1 65 suites +2 8m 14s ⏱️ +28s 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. |
Signed-off-by: ebadiere <[email protected]>
Signed-off-by: ebadiere <[email protected]>
Signed-off-by: ebadiere <[email protected]>
There was a problem hiding this 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. | |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
contracts/solidity/voting/Ballot.sol
Outdated
@@ -0,0 +1,157 @@ | |||
// SPDX-License-Identifier: GPL-3.0 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Signed-off-by: ebadiere <[email protected]>
Signed-off-by: ebadiere <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG
Implementation of the Voting example
Related issue(s):
Fixes #488