Fix signing (#4363)
* Fix signing. * Fix linting. * Fix linting. * Address grumble.
This commit is contained in:
parent
27d00f6eca
commit
75ecabbd28
@ -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
|
||||
|
@ -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 });
|
||||
}
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user