-
Notifications
You must be signed in to change notification settings - Fork 363
Conversation
* Create hook to return the prefixed address as per settings * Apply appearence settings on Sidebar header * Bump @gnosis.pm/safe-react-components to use latest EthHashInfo * Add EthHashInfo wrapper component for shortName settings * Use PrefixedEthHashInfo component in the Appearance settings page * Replace EthHashInfo for the wrapper in the Safe owner management options * Replace EthHashInfo for the wrapper in the Balances modal's send screens * Replace EthHashInfo for its wrapper in the Advanced Settings and Spending Limit options * Replace EthHashInfo for its wrapper PrefixedEthHashInfo * Remove unnecessarily introduced hook * Implement InlineEthHashInfo from the EthHashInfo wrapper * Use lib component props and avoid duplication * Add test for PrefixedEthHashInfo component * Fix "<p> cannot appear as a descendant of <p>" warning * Unset font-weight in PrefixedEthHashInfo when it is inline. * Rename PrefixedEthHashInfo inline styled component in TxList * Do not display chain shortName in AddressBook addresses * Use PrefixedEthHashInfo displaying addresses for the sake of consistency * Pass chainName prop to the EthHashInfo in the SafeListSideBar * Remove temporarly condition to not toggle prefixed addresses in PROD
* Added network prefix to the AddressInput Component * Added network prefix to BaseAddressBookInput * reduced the complexity in AddressInput component * Added AddressInput unit tests * Added a extra test in AddressInput component * Added AddressBookInput unit tests * Added unit tests to getNetworkPrefix and getAddressWithoutNetworkPrefix utils fn * Minor changes in comments th the AddressInput unit tests * Addresses without a network prefix are set by default to the current network * added improvements in AddressInput and validators * Added Unsupported network prefix error in the checkNetworkPrefix validator Co-authored-by: Diogo Soares <diogo.soares@gnosis.pm>
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
|
E2E Tests Failed Failed tests:
|
Please check the e2e tests @DiogoSoaress |
I checked in the same places as I listed in this comment: Checked with and without prefix enabled Issue: Steps: Expected: |
Regarding the failing E2E tests
Problem: The issue is that I can't update/fix the E2E tests before the What I propose as solution is: we first QA and merge the |
* Strip network prefix from the Address when calling EthHashInfo * Do not use chain prefix for TxHash and SafeTxHash in the Tx List
Deployment links
|
* Strip the scanned address from the chain prefix * Replace duplicated prefix removal by util method
This reverts commit d420be4.
* Revert prefixed input (#2954) * Add parsePrefixedAddress and isValidPrefix * Add tests * Restore Dani's tests * Display prefix but pass unprefixed address * Accept initial input thru a hidden input * Remove magic again
@francovenica I've fixed the QR code validation in Send Collectible. |
I know, it's the same behavior this input has always had when the QR code is an invalid address. We should fix it by significantly refactoring the inputs which I don't think we should do in this PR. |
ESLint Summary View Full Report
Report generated by eslint-plus-action |
What it solves
Resolves #2842
How this PR fixes it
This allows the optional EIP-3770 chain prefixes across the application and to accept the chain prefixes in the Input components.
How to test it
Refer to #2896 and #2954 to test this PR