Fix signing (#4363)

* Fix signing.

* Fix linting.

* Fix linting.

* Address grumble.
This commit is contained in:
Gav Wood 2017-01-31 14:15:08 +01:00 committed by GitHub
parent 27d00f6eca
commit 75ecabbd28
3 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,7 @@ export default class SignerMiddleware {
}
onConfirmStart = (store, action) => {
const { gas, gasPrice, id, password, payload, wallet } = action.payload;
const { gas = 0, gasPrice = 0, id, password, payload, wallet } = action.payload;
const handlePromise = (promise) => {
promise

View File

@ -152,8 +152,9 @@ export default class SignRequest extends Component {
);
}
onConfirm = password => {
onConfirm = (data) => {
const { id } = this.props;
const { password } = data;
this.props.onConfirm({ id, password });
}

View File

@ -256,7 +256,7 @@ function mapStateToProps (_, initProps) {
return (state) => {
const { accounts } = state.personal;
let gotAddress = Object.keys(accounts).find(a => a.toLowerCase() === address);
let gotAddress = Object.keys(accounts).find(a => a.toLowerCase() === address.toLowerCase());
const account = gotAddress ? accounts[gotAddress] : {};
return { account };