mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-30 19:00:53 +00:00
Pass passphrase to request
This commit is contained in:
parent
07f9fc30f9
commit
7ecfdb7ec2
@ -59,13 +59,16 @@ export const verify = (
|
||||
message: string,
|
||||
signature: string,
|
||||
hex: boolean = false,
|
||||
): AsyncAction => async (dispatch: Dispatch): Promise<void> => {
|
||||
): AsyncAction => async (dispatch: Dispatch, getState: GetState): Promise<void> => {
|
||||
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,
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user