-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: LIVE-12665 desactivate tezos unrevealed account swap (#6915)
- Loading branch information
Showing
7 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"ledger-live-desktop": patch | ||
"live-mobile": patch | ||
"@ledgerhq/live-common": patch | ||
--- | ||
|
||
desactivate tezos unrevealed account swap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
libs/ledger-live-common/src/exchange/swap/maybeTezosAccountUnrevealedAccount.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { SwapTransactionType } from "./types"; | ||
|
||
export const maybeTezosAccountUnrevealedAccount = ( | ||
swapTransaction: SwapTransactionType, | ||
): Error | undefined => { | ||
if ( | ||
swapTransaction?.transaction?.family == "tezos" && | ||
swapTransaction?.transaction?.estimatedFees && | ||
swapTransaction?.transaction?.fees !== swapTransaction?.transaction?.estimatedFees | ||
) { | ||
const tezosError = new Error("Cannot swap with an unrevealed Tezos account"); | ||
tezosError.name = "TezosUnrevealedAccount"; | ||
return tezosError; | ||
} | ||
}; |
8dabb3b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Testing with 'Nitrogen' ✅ 3 txs ($4.19) ⏲ 86.7s
Details of the 3 mutations
Spec Algorand (6)
Details of the 2 uncovered mutations
Spec Algorand (2)
Portfolio ($4.19) – Details of the 1 currencies
TM4WJOS4MZ2TD775W7GSXZMBUF74YT6SKSBXCZY3N7OUIAPXE54MZ5FCD4
Performance ⏲ 86.7s
Time spent for each spec: (total across mutations)