@ledgerhq/live-cli 24.19.4-nightly.2 → 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.
Files changed (2) hide show
  1. package/lib/cli.js +8 -6
  2. package/package.json +1 -1
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.2",
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.2",
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 { to: to2, value: value5, data: data6 } = transactionToEthersTransaction(transaction);
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
- const sequenceNumber = accountInfo.sequence;
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: sequenceNumber };
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.2",
3
+ "version": "24.19.4-nightly.3",
4
4
  "description": "ledger-live CLI version",
5
5
  "repository": {
6
6
  "type": "git",