From 7ecfdb7ec22a5ac9fa644a2d867c4c8bd96e4e80 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Sat, 20 Oct 2018 01:12:17 +0200 Subject: [PATCH] Pass passphrase to request --- src/actions/SignVerifyActions.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/actions/SignVerifyActions.js b/src/actions/SignVerifyActions.js index 0bf029a0..2b6c76d8 100644 --- a/src/actions/SignVerifyActions.js +++ b/src/actions/SignVerifyActions.js @@ -59,13 +59,16 @@ export const verify = ( message: string, signature: string, hex: boolean = false, -): AsyncAction => async (dispatch: Dispatch): Promise => { +): AsyncAction => async (dispatch: Dispatch, getState: GetState): Promise => { + const selected = getState().wallet.selectedDevice; const input = { address, message, signature, hex, + useEmptyPassphrase: selected.useEmptyPassphrase, }; + const response = await TrezorConnect.ethereumVerifyMessage(input); if (response && response.success) { @@ -74,7 +77,7 @@ export const verify = ( payload: { type: 'success', title: 'Verify success', - message: `${response.payload.signature} was verified`, + message: 'signature is valid', cancelable: true, }, });