@xchainjs/xchain-bitcoin 0.23.12 → 0.23.14
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/lib/clientLedger.d.ts +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +9 -10
package/lib/clientLedger.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare class ClientLedger extends Client {
|
|
|
14
14
|
});
|
|
15
15
|
getApp(): Promise<AppBtc>;
|
|
16
16
|
getAddress(): string;
|
|
17
|
-
getAddressAsync(index?: number): Promise<Address>;
|
|
17
|
+
getAddressAsync(index?: number, verify?: boolean): Promise<Address>;
|
|
18
18
|
transfer(params: TxParams & {
|
|
19
19
|
feeRate?: FeeRate;
|
|
20
20
|
}): Promise<TxHash>;
|
package/lib/index.esm.js
CHANGED
|
@@ -18231,12 +18231,12 @@ class ClientLedger extends Client {
|
|
|
18231
18231
|
throw Error('Sync method not supported for Ledger');
|
|
18232
18232
|
}
|
|
18233
18233
|
// Get the current address asynchronously
|
|
18234
|
-
getAddressAsync(index = 0) {
|
|
18234
|
+
getAddressAsync(index = 0, verify = false) {
|
|
18235
18235
|
return __awaiter$c(this, void 0, void 0, function* () {
|
|
18236
18236
|
const app = yield this.getApp();
|
|
18237
18237
|
const result = yield app.getWalletPublicKey(this.getFullDerivationPath(index), {
|
|
18238
18238
|
format: 'bech32',
|
|
18239
|
-
verify
|
|
18239
|
+
verify,
|
|
18240
18240
|
});
|
|
18241
18241
|
return result.bitcoinAddress;
|
|
18242
18242
|
});
|