Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LIVE-12852] Bugfix - Extend expired time for TRC20 #6852

Merged
merged 3 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chilled-days-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ledger-live-desktop": patch
---

Add `SKIP_ONBOARDING` env to `hasCompletedOnboardingSelector` to make it possible to start the live without a device
5 changes: 5 additions & 0 deletions .changeset/three-trains-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": patch
---

increase tr20 expiry time to 10mn for Vault user
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ export const enableLearnPageStagingUrlSelector = (state: State) =>
export const blacklistedTokenIdsSelector = (state: State) => state.settings.blacklistedTokenIds;
export const hiddenNftCollectionsSelector = (state: State) => state.settings.hiddenNftCollections;
export const hasCompletedOnboardingSelector = (state: State) =>
state.settings.hasCompletedOnboarding;
state.settings.hasCompletedOnboarding || getEnv("SKIP_ONBOARDING");
export const dismissedBannersSelector = (state: State) => state.settings.dismissedBanners || [];
export const dismissedBannerSelector = (
state: State,
Expand Down
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/families/tron/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ export const createTronTransaction = async (
owner_address: decode58Check(account.freshAddress),
};
const url = `${getBaseApiUrl()}/wallet/triggersmartcontract`;
const result = await post(url, txData);
return result.transaction;
const { transaction: preparedTransaction } = await post(url, txData);
return extendTronTxExpirationTimeBy10mn(preparedTransaction);
} else {
// trx/trc10
const txData: SendTransactionData = {
Expand Down
Loading