mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
useEmptyPassphrase for device without instance
This commit is contained in:
parent
416886bd95
commit
be05c097e9
@ -140,9 +140,10 @@ const begin = (device: TrezorDevice, network: string): AsyncAction => {
|
||||
path: device.path,
|
||||
instance: device.instance,
|
||||
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