-
Notifications
You must be signed in to change notification settings - Fork 1k
Refactor MainService.Vote class #4036
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3a042f7
Refactor code and improve styles
ajara87 8e6d3b8
Merge branch 'dev' into feature/vote-cli-clean
da63732
Update src/Neo.CLI/CLI/MainService.Vote.cs
b7f3b1a
Apply dotnet format to fix whitespace formatting
Jim8y b3cdd4e
Update src/Neo.CLI/CLI/MainService.Vote.cs
shargon d4b5d22
Merge branch 'dev' into feature/vote-cli-clean
cschuchardt88 5839f4f
Merge branch 'dev' into feature/vote-cli-clean
Wi1l-B0t fd8c6df
Merge branch 'dev' into feature/vote-cli-clean
Wi1l-B0t c28330a
Merge branch 'dev' into feature/vote-cli-clean
shargon e8b0509
Merge branch 'dev' into feature/vote-cli-clean
shargon 0ed3ee0
Fix: add null arg to BuildNeoScript from UnVote. Rename BuildNativeSc…
ajara87 07b6793
Merge branch 'feature/vote-cli-clean' of https://github.com/ajara87/n…
ajara87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I prefer you to use
ScriptBuilderclass for building scripts. Its easier to understand what is going on.MakeScriptis forUInt160class.Uh oh!
There was an error while loading. Please reload this page.
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.
Why add UInt160Extension.MakeScript?
It's useless?
Uh oh!
There was an error while loading. Please reload this page.
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.
Yes the name is useless. Name needs to change to something else. That describes what it is really doing.
The method is called
BuildNativeScript. Which defeats the purpose of usingNativeContract.NEO.Hash. If its only forneo'shash, then the method shouldn't be calledBuildNativeScript. Because, it doesn't do what the name suggests.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.
It works, and it's faster, so it's good
Uh oh!
There was an error while loading. Please reload this page.
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.
Why do you make up things? How is it faster than
ScriptBuilder?He needs to rename the method to a meaningful name or change the method code to do that method name implies.
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.
Why this is wrong?
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.
Focus, if what you're talking about is that you want to rename an extension, you don't have to block a PR, this PR isn't about that.
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.
@cschuchardt88 chill, lets focus on functionality and then you can update it at any time if you think its necessary. coding style is a thing we can never reach agreement, people will alawys have different standards.
Uh oh!
There was an error while loading. Please reload this page.
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.
I'm sick of cleaning up everyone's bad habits. What are rules for if no one will follow them. I don't blame @ajara87 because he doesn't know better. I blame the rest of you allowing other new people to pickup on these bad habits and allow them to be merged. If we teach the new people how we want code. I won't have to cleanup 3 other peoples work. I guess now make it four.
https://github.com/neo-project/.github/blob/d83897afb4fd5bd3c107a8dfd845e6dcf1e8d713/docs/neo-coding-rules.md
What are you talking about? I already stated what I want. It has nothing to do with extension methods. It's the name of his method that is being added in this PR. Plus it blocked until @superboyiii tests it anyways. Nothing is a rush or must have merged now.