Skip to content

Fix Issue #23801#24150

Closed
ejwessel wants to merge 98 commits intomainfrom
mb843/updates-issue#23801
Closed

Fix Issue #23801#24150
ejwessel wants to merge 98 commits intomainfrom
mb843/updates-issue#23801

Conversation

@ejwessel
Copy link
Copy Markdown
Contributor

@ejwessel ejwessel commented Apr 20, 2024

Description

#23801

Open in GitHub Codespaces

Related issues

Fixes:
Screenshot 2024-04-20 at 3 07 07 PM

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@ejwessel ejwessel requested a review from a team as a code owner April 20, 2024 22:06
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action:

Thank you for your submission, we really appreciate it. We ask that you read and sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just by adding a comment to this pull request with this exact sentence:

I have read the CLA Document and I hereby sign the CLA

By commenting with the above message you are agreeing to the terms of the CLA. Your account will be recorded as agreeing to our CLA so you don't need to sign it again for future contributions to this repository.

0 out of 1 committers have signed the CLA.
@ejwessel

@darkwing darkwing added needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. team-bridge-deprecated DEPRECATED: please use "team-swaps-and-bridge" instead labels Apr 22, 2024
@sahar-fehri
Copy link
Copy Markdown
Contributor

I haven't tested yet but im wondering if similar issue can happen for ERC721?

draftTransaction.sendAsset.details.standard === TokenStandard.ERC1155 &&
draftTransaction.amount.value === '0x0':
draftTransaction.amount.error = INSUFFICIENT_TOKENS_ERROR
break;
Copy link
Copy Markdown
Contributor

@salimtb salimtb Apr 25, 2024

Choose a reason for hiding this comment

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

can you add a unit test or e2e test for this case ?

@sleepytanya
Copy link
Copy Markdown
Contributor

@sahar-fehri I haven't seen this issue with ERC721 yet. Good reminder! Will double-check.

@sleepytanya
Copy link
Copy Markdown
Contributor

@sahar-fehri I can't send ERC721 - every attempt results in frozen MM (429 errors) before I can actually see the next screen.

cryptoKitty.mov

The fix is working great!

0NFT.mov

May be it's worth asking @hesterbruikman what message we want to display: 'Insufficient tokens' or 'Cannot send negative or zero amount of tokens'.

@ejwessel ejwessel requested review from a team April 29, 2024 22:42
@ejwessel ejwessel closed this Apr 30, 2024
@ejwessel ejwessel force-pushed the mb843/updates-issue#23801 branch from 5acc32d to 1ccff93 Compare April 30, 2024 17:47
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2024
@ejwessel ejwessel reopened this Apr 30, 2024
@sahar-fehri
Copy link
Copy Markdown
Contributor

Thanks @sleepytanya ! The 429 you got is curious, i wasnt able to reproduce, and it seems okay for ERC721, the UI will display "balance: 1 token"

Screen.Recording.2024-05-02.at.15.30.00.mov

@legobeat
Copy link
Copy Markdown
Contributor

legobeat commented May 2, 2024

@sahar-fehri 429 Rate-Limiting errors are common for users coming through e.g. Tor or commercial VPN services. As an aside, in general we shouldn't assume availability of these endpoints and fail gracefully when they aren't available.

@ejwessel ejwessel force-pushed the mb843/updates-issue#23801 branch from 9dc873f to aa048e4 Compare May 3, 2024 22:45
@ejwessel ejwessel requested a review from a team as a May 6, 2024 12:03
@BZahory BZahory force-pushed the mb843/updates branch 2 times, most recently from f012b0f to f3a1896 Compare May 6, 2024 12:07
@ejwessel ejwessel force-pushed the mb843/updates-issue#23801 branch from 56e7a02 to 5fbe37c Compare May 7, 2024 15:48
@ejwessel
Copy link
Copy Markdown
Contributor Author

ejwessel commented May 7, 2024

Unrelated to my change, the tests are inconsistent and often fail when an address is selected or inserted as the recipient.

Common errors are:

-----Received an error from Chrome-----
SES_UNHANDLED_REJECTION: (TypeError#2)
----------End of Chrome error----------

-----Received an error from Chrome-----
TypeError#2: Cannot set properties of undefined (setting 'quotes')
----------End of Chrome error----------
-----Received an error from Chrome-----
(BigNumber Error#1)
----------End of Chrome error----------

-----Received an error from Chrome-----
BigNumber Error#1: new BigNumber() not a number: 2540be400
----------End of Chrome error----------

@ejwessel ejwessel requested a review from salimtb May 7, 2024 16:00
@BZahory BZahory force-pushed the mb843/updates-issue#23801 branch from 0deb070 to 2fc386c Compare May 7, 2024 18:28
@ejwessel ejwessel force-pushed the mb843/updates-issue#23801 branch from 2fc386c to 31e6724 Compare May 7, 2024 18:50
darkwing added 2 commits May 8, 2024 02:41
Restore domain-input

Fix test for send error

Fix max button test

E2Es: Update amount selector, Next to Continue button

Remove header for send flow

Fix address book and ENS tests

Update snap-account-transfers.spec.ts and helpers.js

Update change-language.spec.js

Fix custom-token-send-transfer.spec.js

Fix missing NFT icon

Make send-nft.spec.js pass, set send volume to 1 when NFT

Fix send-edit.spec.js

Fix address-book.spec.js

Release the address book changes
@ejwessel ejwessel force-pushed the mb843/updates-issue#23801 branch from 31e6724 to 1777317 Compare May 8, 2024 16:49
@ejwessel
Copy link
Copy Markdown
Contributor Author

ejwessel commented May 8, 2024

Change was cherry picked out.

Base automatically changed from mb843/updates to mb843/swap-and-send May 8, 2024 17:50
@BZahory BZahory force-pushed the mb843/swap-and-send branch from fbf3ac0 to a3fa6a7 Compare May 10, 2024 15:29
@BZahory BZahory force-pushed the mb843/swap-and-send branch from a3fa6a7 to 6b5250e Compare May 22, 2024 20:48
@BZahory BZahory requested a review from a team as a code owner May 22, 2024 20:48
Copy link
Copy Markdown
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Hey @ejwessel, I've started a discussion in slack regarding component library changes https://consensys.slack.com/archives/C0354T27M5M/p1716478907218739

} from './button-icon.types';

const buttonIconSizeToIconSize: Record<ButtonIconSize, IconSize> = {
[ButtonIconSize.Xs]: IconSize.Xs,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @ejwessel, this method for adding a size seems correct, but changes to the component-library require a thorough review to ensure alignment with the Figma and mobile component. It also appears that this update isn't currently being used. Should this be removed?

Notice the Figma component does not have an Xs size

Screenshot 2024-05-23 at 8 32 06 AM

href={CONSENSYS_TERMS_OF_USE}
target="_blank"
className="quote-card__TOS"
disableUnderline
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If the underline on hover must be overridden can we do it with a custom className instead of updating the component api itself?

@BZahory BZahory force-pushed the mb843/swap-and-send branch 6 times, most recently from f748aa0 to 8562dbb Compare May 25, 2024 19:40
Base automatically changed from mb843/swap-and-send to develop May 26, 2024 01:54
@salimtb salimtb removed their request for review September 18, 2024 14:02
@jvbriones jvbriones added team-swaps-and-bridge Swaps and Bridge team and removed team-bridge-deprecated DEPRECATED: please use "team-swaps-and-bridge" instead labels Apr 21, 2025
@HowardBraham HowardBraham deleted the mb843/updates-issue#23801 branch January 19, 2026 21:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. team-swaps-and-bridge Swaps and Bridge team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants