mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
useEmptyPassphrase for device without instance
This commit is contained in:
parent
416886bd95
commit
be05c097e9
@ -142,7 +142,8 @@ const begin = (device: TrezorDevice, network: string): AsyncAction => {
|
||||
state: device.state
|
||||
},
|
||||
path: coinToDiscover.bip44,
|
||||
keepSession: true // acquire and hold session
|
||||
keepSession: true, // acquire and hold session
|
||||
useEmptyPassphrase: !device.instance,
|
||||
});
|
||||
|
||||
// handle TREZOR response error
|
||||
@ -214,7 +215,8 @@ const discoverAccount = (device: TrezorDevice, discoveryProcess: Discovery): Asy
|
||||
},
|
||||
path,
|
||||
showOnTrezor: false,
|
||||
keepSession: true
|
||||
keepSession: true,
|
||||
useEmptyPassphrase: !device.instance,
|
||||
});
|
||||
if (discoveryProcess.interrupted) return;
|
||||
|
||||
@ -312,7 +314,8 @@ const discoverAccount = (device: TrezorDevice, discoveryProcess: Discovery): Asy
|
||||
instance: device.instance,
|
||||
state: device.state
|
||||
},
|
||||
keepSession: false
|
||||
keepSession: false,
|
||||
useEmptyPassphrase: !device.instance,
|
||||
});
|
||||
if (discoveryProcess.interrupted) return;
|
||||
|
||||
|
@ -73,6 +73,7 @@ export const showAddress = (address_n: Array<number>): AsyncAction => {
|
||||
state: selected.state
|
||||
},
|
||||
path: address_n,
|
||||
useEmptyPassphrase: !selected.instance,
|
||||
});
|
||||
|
||||
if (response && response.success) {
|
||||
|
@ -902,7 +902,7 @@ export const onSend = (): AsyncAction => {
|
||||
instance: selected.instance,
|
||||
state: selected.state
|
||||
},
|
||||
//path: "m/44'/60'/0'/0/0",
|
||||
useEmptyPassphrase: !selected.instance,
|
||||
path: txData.address_n,
|
||||
nonce: strip(txData.nonce),
|
||||
gasPrice: strip(txData.gasPrice),
|
||||
|
@ -292,7 +292,8 @@ export const getSelectedDeviceState = (): AsyncAction => {
|
||||
path: selected.path,
|
||||
instance: selected.instance,
|
||||
state: selected.state
|
||||
}
|
||||
},
|
||||
useEmptyPassphrase: !selected.instance,
|
||||
});
|
||||
|
||||
if (response && response.success) {
|
||||
@ -383,7 +384,8 @@ export function acquire(): AsyncAction {
|
||||
const response = await TrezorConnect.getFeatures({
|
||||
device: {
|
||||
path: selected.path,
|
||||
}
|
||||
},
|
||||
useEmptyPassphrase: !selected.instance,
|
||||
});
|
||||
|
||||
if (!response.success) {
|
||||
|
Loading…
Reference in New Issue
Block a user