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

make sure all non-cli broadcasts use broadcast config param #8892

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Wozacosta
Copy link
Contributor

@Wozacosta Wozacosta commented Jan 14, 2025

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

Mobile update:

mev protection wouldn't be used for now, but if in the future we use the useSignWithDevice hook elsewhere where mev protection would make sense, it'll be there.

Shottr 2025-01-14 12 29 15

Desktop udpate:

LiveAppSDKLogic <- PlatformAPIWebView <-Web3AppWebview/index.tsx
<- apps/ledger-live-desktop/src/renderer/components/WebPTXPlayer/index.tsx (used only be LiveAppCard and Buy/Sell)
<- apps/ledger-live-desktop/src/renderer/components/WebPlatformPlayer/index.tsx (only important one here, handle legacy manifests live-app, earn)
<- apps/ledger-live-desktop/src/renderer/components/WebRecoverPlayer/index.tsx
<- apps/ledger-live-desktop/src/renderer/screens/exchange/Swap2/Form/SwapWebViewDemo3.tsx

❓ Context

  • JIRA or GitHub link: LIVE-15795

🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@Wozacosta Wozacosta requested review from a team as code owners January 14, 2025 11:44
Copy link

vercel bot commented Jan 14, 2025

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 4:00pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 4:00pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 4:00pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Jan 17, 2025 4:00pm

@live-github-bot live-github-bot bot added desktop Has changes in LLD mobile Has changes in LLM labels Jan 14, 2025
@Wozacosta Wozacosta force-pushed the chore/future-proof-mevprotection-onbroadcast branch from c686b18 to b253cfb Compare January 14, 2025 14:10
@Wozacosta Wozacosta force-pushed the chore/future-proof-mevprotection-onbroadcast branch from b253cfb to 9d82aa6 Compare January 16, 2025 08:47
ComradeAERGO
ComradeAERGO previously approved these changes Jan 17, 2025
Copy link
Contributor

@ComradeAERGO ComradeAERGO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

LucasWerey
LucasWerey previously approved these changes Jan 17, 2025
@@ -70,6 +72,7 @@ export const broadcastTransactionLogic = (
): Promise<string> => {
const bridge = getAccountBridge(account, parentAccount);
const mainAccount = getMainAccount(account, parentAccount);
const mevProtected = useSelector(mevProtectionSelector);
Copy link
Contributor

@Justkant Justkant Jan 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't use a useSelector in here if possible, it's not a react component and we cannot expect it to work correctly in all cases

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You would probably want to add this in the WebPlatformContext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants