Skip to content

Commit 8e273b3

Browse files
authored
Merge pull request #11341 from LedgerHQ/bugfix/stellar-empty-operation
fix: add log to check if operation is empty
2 parents 3ac0397 + 867db62 commit 8e273b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libs/ledger-live-common/src/bridge/generic-alpaca/signOperation.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { FeeNotLoaded } from "@ledgerhq/errors";
1313
import { Result } from "@ledgerhq/coin-framework/derivation";
1414
import { MapMemo, TransactionIntent } from "@ledgerhq/coin-framework/api/types";
1515
import { StellarMemo } from "@ledgerhq/coin-stellar/types/bridge";
16+
import { log } from "@ledgerhq/logs";
1617
import BigNumber from "bignumber.js";
1718

1819
/**
@@ -144,7 +145,9 @@ export const genericSignOperation =
144145
signedInfo.publicKey,
145146
);
146147
const operation = buildOptimisticOperation(account, transaction, signedInfo.sequence);
147-
148+
if (!operation.id) {
149+
log("Generic alpaca", "buildOptimisticOperation", operation);
150+
}
148151
// NOTE: we set the transactionSequenceNumber before on the operation
149152
// now that we create it in craftTransaction, we might need to return it back from craftTransaction also
150153
o.next({

0 commit comments

Comments
 (0)