Skip to content

Commit

Permalink
chore(lld): extract urls from createTransactionBroadcastError
Browse files Browse the repository at this point in the history
  • Loading branch information
thesan committed Oct 23, 2024
1 parent d74d723 commit 1a770df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions apps/ledger-live-desktop/src/config/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ export const urls = {
"https://shop.ledger.com?utm_source=live&utm_medium=draw&utm_campaign=ledger_sync_lns_uncompatible&utm_content=to_shop",
learnMoreLedgerSync:
"https://www.ledger.com/blog-ledger-sync-synchronize-your-crypto-accounts-effortless-private-and-secure",

// Node errors
txBroadcastErrors: {
badTxns: "https://support.ledger.com/article/5129526865821-zd",
blobsLimit: "https://support.ledger.com/article/17830974229661-zd",
txnMempoolConflict: "https://support.ledger.com/article/14593285242525-zd",
},
};

export const vaultSigner = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import SuccessDisplay from "~/renderer/components/SuccessDisplay";
import { OperationDetails } from "~/renderer/drawers/OperationDetails";
import { setDrawer } from "~/renderer/drawers/Provider";
import { multiline } from "~/renderer/styles/helpers";
import { urls } from "~/config/urls";
import { StepProps } from "../types";
import NodeError from "./Confirmation/NodeError";
import ErrorDisplay from "~/renderer/components/ErrorDisplay";
Expand Down Expand Up @@ -89,7 +90,7 @@ function StepConfirmation({
/>
{signed ? (
<NodeError
error={createTransactionBroadcastError(error, {
error={createTransactionBroadcastError(error, urls, {
coin: ticker,
network: String(mainAccount?.currency.name),
})}
Expand Down

0 comments on commit 1a770df

Please sign in to comment.