-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
gavofyork
commented
Nov 20, 2016
•
edited by jacogr
Loading
edited by jacogr
- RPC
- Test for RPC
- parity.js binding
- UI integration
Last two should be down to @jacogr |
over to you, @jacogr . |
UI integration - https://youtu.be/4Ih7ITwbq-A @gavofyork It would be good if we could have the same for the Closes https://github.com/ethcore/parity/issues/3105 |
will do the address book deletion in a separate PR. |
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.
Minor grumbles
take_weak!(self.accounts) | ||
.kill_account(&account, &password) | ||
.map(|_| true) | ||
.map_err(|e| errors::account("Could not fetch account info.", e)) |
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.
"Could not kill account?"
let res = tester.io.handle_request_sync(&request); | ||
assert_eq!(res, Some(response.into())); | ||
|
||
let request = r#"{"jsonrpc": "2.0", "method": "parity_accountsInfo", "params": [], "id": 1}"#; |
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.
Could be just a check in tester.accounts
, no?
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.
where is tester.accounts
?
onDeny={ this.closeDeleteDialog } | ||
onConfirm={ this.onDeleteConfirmed }> | ||
<div className={ styles.hero }> | ||
Are you sure you want to remove permanently delete the following account? |
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.
"remove permanently delete"
newError(new Error('Deletion failed.')); | ||
} | ||
|
||
this.closeDeleteDialog(); |
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.
Do we really want to close the dialog if there is an error?
.catch((error) => { | ||
console.error('onDeleteConfirmed', error); | ||
newError(new Error(`Deletion failed: ${error.message}`)); | ||
this.closeDeleteDialog(); |
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.
Do we really want to close the dialog if there is an error?
static propTypes = { | ||
account: PropTypes.object.isRequired, | ||
onClose: PropTypes.func, | ||
newError: PropTypes.func |
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 the functions are not required?
Consider static defaultProps = { onClose: () => {}, newError: () => () }
grumbles addressed on my part |