Skip to content

Commit adc9adf

Browse files
Merge pull request #736 from syscoin/develop
update keyring fix verify address
2 parents 948fa7c + 98e6157 commit adc9adf

File tree

6 files changed

+10
-19
lines changed

6 files changed

+10
-19
lines changed

manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"js/inpage.bundle.js",
6666
"js/handleWindowProperties.bundle.js",
6767
"js/pali.bundle.js",
68+
"assets/all_assets/*",
6869
"assets/all_assets/favicon-16.png",
6970
"assets/all_assets/favicon-32.png",
7071
"assets/all_assets/favicon-48.png",
@@ -82,4 +83,4 @@
8283
}
8384
}
8485
}
85-
}
86+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@heroicons/react": "^1.0.6",
6464
"@reduxjs/toolkit": "^2.8.2",
6565
"@sidhujag/sysweb3-core": "^1.0.27",
66-
"@sidhujag/sysweb3-keyring": "^1.0.561",
66+
"@sidhujag/sysweb3-keyring": "^1.0.563",
6767
"@sidhujag/sysweb3-network": "^1.0.106",
6868
"@sidhujag/sysweb3-utils": "^1.1.271",
6969
"@tippyjs/react": "^4.2.6",

source/components/Header/AccountHeader.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,9 @@ export const AccountHeader: React.FC = () => {
7979
try {
8080
setIsLoading(true);
8181

82-
// Determine which hardware wallet type to use
83-
const signerType = isLedger ? 'ledgerSigner' : 'trezorSigner';
84-
85-
// Use type assertion for legacy controller methods
82+
// Route through ethereumTransaction.verifyUtxoAddress, which dispatches to the correct HW
8683
await (controllerEmitter as any)(
87-
['wallet', signerType, 'utxo', 'verifyUtxoAddress'],
84+
['wallet', 'ethereumTransaction', 'verifyUtxoAddress'],
8885
[activeAccount?.id, activeNetwork.currency, activeNetwork.slip44],
8986
300000 // 5 minutes timeout for hardware wallet operations
9087
);

source/config/consts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ const MV3_OPTIONS = {
135135
'js/inpage.bundle.js',
136136
'js/handleWindowProperties.bundle.js',
137137
'js/pali.bundle.js',
138+
'assets/all_assets/*',
138139
'assets/all_assets/favicon-16.png',
139140
'assets/all_assets/favicon-32.png',
140141
'assets/all_assets/favicon-48.png',

source/scripts/Background/controllers/MainController.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,14 +1185,6 @@ class MainController {
11851185
return (this.getActiveKeyring() as any).validateWif(wif, targetNetwork);
11861186
}
11871187

1188-
public get trezorSigner() {
1189-
return this.getActiveKeyring().trezorSigner;
1190-
}
1191-
1192-
public get ledgerSigner() {
1193-
return this.getActiveKeyring().ledgerSigner;
1194-
}
1195-
11961188
public getChangeAddress(id: number) {
11971189
return this.getActiveKeyring().getChangeAddress(id);
11981190
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2629,10 +2629,10 @@
26292629
resolved "https://registry.yarnpkg.com/@sidhujag/sysweb3-core/-/sysweb3-core-1.0.27.tgz#b7dd7d065c1845519e91ac470540ab94721eb33b"
26302630
integrity sha512-aeUJpk+DiziPJbD6HFnfixKZj0T4HYStshjk6+adziftLwamNc3MIp+MtIVZwtzvNpbzIXwAnuJM/QXQsc01NQ==
26312631

2632-
"@sidhujag/sysweb3-keyring@^1.0.561":
2633-
version "1.0.561"
2634-
resolved "https://registry.yarnpkg.com/@sidhujag/sysweb3-keyring/-/sysweb3-keyring-1.0.561.tgz#13f018f23ae89467976c79bb74eaf77b8e27578d"
2635-
integrity sha512-ZiUxk5s4FabqIzbXvyfX42ZpfYDKLXCdzbCufmHYIaVdlglg239ISagfj540Pm0UEBIADhb6YwsOEnyFXkLLEA==
2632+
"@sidhujag/sysweb3-keyring@^1.0.563":
2633+
version "1.0.563"
2634+
resolved "https://registry.yarnpkg.com/@sidhujag/sysweb3-keyring/-/sysweb3-keyring-1.0.563.tgz#98781aac4d28983c7e2767106566dc7796efbb3b"
2635+
integrity sha512-pRoGp3TPoWSeEuEqJZvuepCXp8/8cQY82EMH+xe4MxCgMj4J9mR++RIutVk/AnO7kYIXoNIGPqpw4Jvi8504bA==
26362636
dependencies:
26372637
"@bitcoinerlab/secp256k1" "^1.2.0"
26382638
"@ethersproject/abstract-provider" "^5.8.0"

0 commit comments

Comments
 (0)