Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Block invalid account name creation #5784

Merged
merged 6 commits into from
Jun 7, 2017
Merged

Conversation

jacogr
Copy link
Contributor

@jacogr jacogr commented Jun 7, 2017

  • Sets name error properly on empty name between next/prev
  • Fixes clicking rapidly on next that creates invalid accounts in case where name was previously set
  • Fixed token balance checks (currently Geth key imports are not working)
  • Additional safety checks for empty phrase (fromNew) and canCreate in actual action handler

@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. B0-patch and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 7, 2017
@jacogr jacogr requested a review from tomusdrw June 7, 2017 10:00
@@ -91,7 +91,11 @@ export default class Store {
}

@computed get hasAddress () {
return !!(this.address);
return this.address.length !== 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

this.address is never null/undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, will revert - extra safety. (It should be empty, but no need to muck about)

@@ -329,8 +329,6 @@ class CreateAccount extends Component {
}

onCreate = () => {
this.createStore.setBusy(true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems that we don't need to setBusy(false) as well (since it's done inside createAccount in store)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

+1

@tomusdrw tomusdrw added A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 7, 2017
@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. and removed A6-mustntgrumble 💦 Pull request has areas for improvement. The author need not address them before merging. labels Jun 7, 2017
@tomusdrw tomusdrw added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 7, 2017
@arkpar arkpar merged commit 882f963 into master Jun 7, 2017
@arkpar arkpar deleted the jg-additional-phrase-check branch June 7, 2017 14:27
jacogr added a commit that referenced this pull request Jun 7, 2017
@jacogr jacogr mentioned this pull request Jun 7, 2017
arkpar pushed a commit that referenced this pull request Jun 7, 2017
* Merge #5716

* Merge #5784

* Merge #5698
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants