@rabby-wallet/eth-hd-keyring 4.2.0-beta.0 → 4.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/index.ts +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -242,7 +242,7 @@ class HdKeyring extends eth_simple_keyring_1.default {
|
|
|
242
242
|
getInfoByAddress(address) {
|
|
243
243
|
const detail = this.accountDetails[address];
|
|
244
244
|
if (detail) {
|
|
245
|
-
return detail;
|
|
245
|
+
return Object.assign(Object.assign({}, detail), { basePublicKey: this.publicKey });
|
|
246
246
|
}
|
|
247
247
|
for (const key in this.wallets) {
|
|
248
248
|
const wallet = this.wallets[key];
|
package/index.ts
CHANGED
|
@@ -275,7 +275,10 @@ class HdKeyring extends SimpleKeyring {
|
|
|
275
275
|
getInfoByAddress(address: string): AccountDetail | null {
|
|
276
276
|
const detail = this.accountDetails[address];
|
|
277
277
|
if (detail) {
|
|
278
|
-
return
|
|
278
|
+
return {
|
|
279
|
+
...detail,
|
|
280
|
+
basePublicKey: this.publicKey,
|
|
281
|
+
};
|
|
279
282
|
}
|
|
280
283
|
|
|
281
284
|
for (const key in this.wallets) {
|