-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: create home and create vote component #15
Conversation
Created the home and create vote pages with appropriate features. Also, started centralized error handling components and integrated them there, will be added to other components in the future, as well improved accessibility
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.
We appreciate your interest in contributing to our project. As this is your first pull request, please ensure you have followed our Contributing Guidelines, as well as our Git/GitHub workflows. Adhering to these practices helps maintain our project's quality and ease of collaboration. If you're unsure about anything or need some help, don't hesitate to ask. Happy coding!
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.
very clean code, create vote has some minor errors
networkPassphrase: Networks.TESTNET, | ||
}) | ||
.addOperation( | ||
contract.call( |
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.
contract.call(
'create_vote',
nativeToScVal('voteID', { type: 'symbol' }),
nativeToScVal(options, { type: 'vec' }),
nativeToScVal(title, { type: 'string' }),
nativeToScVal(description, { type: 'string' }),
),
voteID is missing, options needs to be set second
'create', | ||
nativeToScVal(title, { type: 'string' }), | ||
nativeToScVal(description, { type: 'string' }), | ||
nativeToScVal(options, { type: 'array' }), |
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.
options current type looks like this:
[
{
"option": "t"
},
{
"option": "t"
}
]
but needs to be like this:
['option1', 'option2']
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Types of changes
Checklist:
Description
Created the home and create vote pages with appropriate features. Also, started centralized error handling components and integrated them there, will be added to other components in the future, as well improved accessibility
Screenshots (if appropriate):
Screen.Recording.2024-08-06.at.01.53.02.mov
Additional context:
Please try to keep to the clean code approach and try centralising and splitting up components/features if they get to large. 😄