@ledgerhq/live-cli 24.19.4-nightly.1 → 24.19.4-nightly.3
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/cli.js +8 -6
- package/package.json +2 -2
package/lib/cli.js
CHANGED
|
@@ -516666,7 +516666,7 @@ var require_package8 = __commonJS({
|
|
|
516666
516666
|
module2.exports = {
|
|
516667
516667
|
name: "@ledgerhq/live-common",
|
|
516668
516668
|
description: "Common ground for the Ledger Live apps",
|
|
516669
|
-
version: "34.41.0-nightly.
|
|
516669
|
+
version: "34.41.0-nightly.3",
|
|
516670
516670
|
repository: {
|
|
516671
516671
|
type: "git",
|
|
516672
516672
|
url: "https://github.com/LedgerHQ/ledger-live.git"
|
|
@@ -523467,7 +523467,7 @@ var require_package9 = __commonJS({
|
|
|
523467
523467
|
"package.json"(exports2, module2) {
|
|
523468
523468
|
module2.exports = {
|
|
523469
523469
|
name: "@ledgerhq/live-cli",
|
|
523470
|
-
version: "24.19.4-nightly.
|
|
523470
|
+
version: "24.19.4-nightly.3",
|
|
523471
523471
|
description: "ledger-live CLI version",
|
|
523472
523472
|
repository: {
|
|
523473
523473
|
type: "git",
|
|
@@ -609982,7 +609982,9 @@ var getTransactionCount2 = (currency24, address4) => withApi(currency24, async (
|
|
|
609982
609982
|
var getGasEstimation2 = (account3, transaction) => withApi(
|
|
609983
609983
|
account3.currency,
|
|
609984
609984
|
async (api7) => {
|
|
609985
|
-
const
|
|
609985
|
+
const to2 = transaction.recipient;
|
|
609986
|
+
const value5 = ethers_exports.BigNumber.from(transaction.amount.toFixed(0));
|
|
609987
|
+
const data6 = transaction.data ? `0x${transaction.data.toString("hex")}` : "";
|
|
609986
609988
|
try {
|
|
609987
609989
|
const gasEstimation = await api7.estimateGas({
|
|
609988
609990
|
...to2 ? { to: to2 } : (
|
|
@@ -817681,12 +817683,12 @@ var genericSignOperation = (network, kind) => (signerContext4) => ({ account: ac
|
|
|
817681
817683
|
};
|
|
817682
817684
|
txWithMemo.memo.memos.set("destinationTag", txMemo);
|
|
817683
817685
|
}
|
|
817684
|
-
const unsigned2 = await getAlpacaApi(network, kind).craftTransaction(transactionIntent);
|
|
817685
817686
|
const accountInfo = await getAlpacaApi(network, kind).getAccountInfo(transactionIntent.sender);
|
|
817686
|
-
|
|
817687
|
+
transactionIntent.sequence = accountInfo.sequence;
|
|
817688
|
+
const unsigned2 = await getAlpacaApi(network, kind).craftTransaction(transactionIntent);
|
|
817687
817689
|
o50.next({ type: "device-signature-requested" });
|
|
817688
817690
|
const txnSig = await signer2.signTransaction(derivationPath, unsigned2);
|
|
817689
|
-
return { unsigned: unsigned2, txnSig, publicKey: publicKey3, sequence:
|
|
817691
|
+
return { unsigned: unsigned2, txnSig, publicKey: publicKey3, sequence: transactionIntent.sequence };
|
|
817690
817692
|
});
|
|
817691
817693
|
if (!signedInfo)
|
|
817692
817694
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/live-cli",
|
|
3
|
-
"version": "24.19.4-nightly.
|
|
3
|
+
"version": "24.19.4-nightly.3",
|
|
4
4
|
"description": "ledger-live CLI version",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"ts-node": "10.9.2",
|
|
59
59
|
"tsup": "7.3.0",
|
|
60
60
|
"@ledgerhq/types-cryptoassets": "^7.23.0",
|
|
61
|
-
"@ledgerhq/types-live": "^6.77.0-nightly.
|
|
61
|
+
"@ledgerhq/types-live": "^6.77.0-nightly.1"
|
|
62
62
|
},
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"directory": "dist"
|