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

Feat/live 15540 aptos send receive fix when send max is toggled on the amount sent is different in ll and device #8763

Open
wants to merge 2 commits into
base: feat/integrate-aptos
Choose a base branch
from

Conversation

may01
Copy link

@may01 may01 commented Dec 24, 2024

✅ Checklist

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

📝 Description

For transactions with SendMaxAmount: transaction amount was substituted with default amount that was calculated without network estimation.

To solve this tx amount calculation moved out form the buildTransaction function, to getFee. Because this is the only place where we expect to have tx with hardcoded/default gas amounts.
And this change restores Single responsibility for buildTransaction.

❓ Context

  • JIRA or GitHub link:

🧐 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)

@may01 may01 requested review from a team as code owners December 24, 2024 15:52
Copy link

vercel bot commented Dec 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-tools ❌ Failed (Inspect) Dec 24, 2024 4:16pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Dec 24, 2024 4:16pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 24, 2024 4:16pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Dec 24, 2024 4:16pm

@live-github-bot live-github-bot bot added desktop Has changes in LLD mobile Has changes in LLM common Has changes in live-common ui Has changes in the design system library ledgerjs Has changes in the ledgerjs open source libs tools Has changes in tools translations Translation files have been touched cli labels Dec 24, 2024
@may01 may01 changed the base branch from develop to feat/integrate-aptos December 24, 2024 15:56
@live-github-bot live-github-bot bot removed desktop Has changes in LLD mobile Has changes in LLM ui Has changes in the design system library ledgerjs Has changes in the ledgerjs open source libs tools Has changes in tools translations Translation files have been touched cli labels Dec 24, 2024
@live-github-bot
Copy link
Contributor

live-github-bot bot commented Dec 24, 2024

Desktop Bundle Checks

Comparing 823bf23 against 0e6ee7d.

⚠️ main bundle size significantly increased: 1.8mb -> 2mb. Please check if this is expected.
⚠️ renderer bundle size significantly increased: 36.7mb -> 38.1mb. Please check if this is expected.
⚠️ @opentelemetry/semantic-conventions library is now duplicated in main (regression)
⚠️ @opentelemetry/core library is now duplicated in main (regression)
⚠️ ms library is now duplicated in main (regression)
⚠️ debug library is now duplicated in main (regression)
⚠️ ajv library is now duplicated in main (regression)
⚠️ @celo/base/lib/address library is now duplicated in renderer (regression)
⚠️ @celo/base/lib/signatureUtils library is now duplicated in renderer (regression)
⚠️ @celo/utils/lib/address library is now duplicated in renderer (regression)
⚠️ @celo/utils/lib/solidity library is now duplicated in renderer (regression)
⚠️ @celo/utils/lib/signatureUtils library is now duplicated in renderer (regression)

Mobile Bundle Checks

Comparing 823bf23 against 0e6ee7d.

⚠️ main.ios.jsbundle bundle size significantly increased: 60.2mb -> 61.9mb. Please check if this is expected.
⚠️ main.android.jsbundle bundle size significantly increased: 60.3mb -> 61.9mb. Please check if this is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant