You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcont=awaitwouldYouLikeToContinue("Would you like to use a custom derivation path? (NOTE: the default 'm/44'/60'/0'/0/0' will be used otherwise)");
128
+
exportconstaccountIndex=async()=>{
129
+
constcont=awaitwouldYouLikeToContinue("Would you like to use a custom bip39 account index? (NOTE: the default 'm/44'/60'/0'/0/[0]s' will be used otherwise)");
130
130
if(!cont){
131
-
returnfalse;
131
+
return0;
132
132
}
133
133
134
-
returnenvVarOrPrompt({
135
-
title: `Enter the derivation path (e.g m/44'/60'/0'/0/0)`,
console.warn(`If your ledger is not working, you may need to open LedgerLive, navigate to: Accounts -> <Signer> -> Receive and follow the prompts on device. Once your Ledger says "Application is Ready", you can force quit LedgerLive and retry Zeus.`)
// double check that this ledger is a signer for the multisig.
123
89
if(this.forMultisig){
@@ -130,12 +96,12 @@ export class GnosisLedgerStrategy extends GnosisApiStrategy {
130
96
abi,
131
97
address: this.forMultisig
132
98
})
133
-
if(!awaitsafe.read.isOwner([res])){
134
-
thrownewError(`This ledger path (${derivationPath}) produced address (${res}), which is not a signer on the multisig (${this.forMultisig})`);
99
+
if(!awaitsafe.read.isOwner([signer.address])){
100
+
thrownewError(`This ledger path (accountIndex=${accountIndex}) produced address (${signer.address}), which is not a signer on the multisig (${this.forMultisig})`);
135
101
}
136
102
}
137
103
138
-
returnres;
104
+
returnsigner.address;
139
105
}catch(e){
140
106
if((easError).message.includes('Locked device')){
141
107
console.error(`Error: Please unlock your ledger.`);
0 commit comments