-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
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.
Rust part looks good, although it may require some changes in the UI (but I guess those can follow, since there are two addtional issues to solve)
For minimal compatibility with the UI we should do sha3(sign.data)
instead of sign.hash
here:
https://github.com/ethcore/parity/blob/946d79f530f22982d3e83deaf8a95625c31bb15b/js/src/views/Signer/components/RequestPending/requestPending.js#L64
@tomusdrw any idea about the "it thinks it's an client-side account even when it's not" bug? |
I've experienced something similar today when switching networks without reloading the GUI, maybe that was the case? |
No, it's a different problem:
|
fixed both. |
@tomusdrw ready for re-review. |
@@ -27,8 +27,18 @@ | |||
min-height: $pendingHeight; | |||
} | |||
|
|||
.signData { |
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.
Might be good to introduce maximal height and overflow for very long ascii texts:
overflow: auto;
max-height: 6em;
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.
Looks fine for me, minor grubmles
@@ -62,8 +76,21 @@ export default class SignRequest extends Component { | |||
); | |||
} | |||
|
|||
renderAsciiDetails (ascii) { | |||
return (<div className={ styles.signData }> |
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's most common in the codebase to put a new line after (
and before )
.
* Fix whitespace. * Fix post sign. * Fix message. * Fix tests. * Rest of the problems. * All hail the linter and its omniscience. * ...and its divine omniscience. * Grumbles and wording.
Yet to do: