This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Relates to #360. Only allow import from Parity Signer chain acc…
…ount matching current chain. ETC support (#483) * feat: Relates to #360. Only allow import from Parity Signer chain account matching current chain. ETC support * review-fix: Refer to non-Parity chain names in the UI. Add console.error * review-fix: Do not need to chcek health status before calling chainId RPC of light.js on pages accessed through navigation * review-fix: Rename function name that matches current chain id with imported chain id of address * review-fix: Remove unnecessary function * review-fix: Rename function to accountAlreadyExists * review-fix: Remove FIXME. See #483 (comment) * review-fix: Refactor to use util functions isEtcChainId, chainIdToString, isNotErc20TokenAddress * fix: Fix typo in comment * review-fix: Change wording of parity phrase comment * review-fix: Do not clear isImport as not account related * fix: Clear error so error when recover from seed phrase not still shown if then click to recover from QR code * fix: Rename so signerChainId correctly destructured and not undefined * review-fix: Remove async/await from clear * fix: Avoid mapping signer chain id to chain name since too much maintenance with Parity Ethereum * review-fix: Remove await from createAccountStore * tests: Add colour to fether-react tests * refactor: No need to parseInt on the signerChainId * refactor: Use isNotErc20TokenAddress * refactor: Use isNotErc20TokenAddress again * refactor: Add isErc20TokenAddress util so more readable * fix: Replace valueOf with .eq. Fix so obtain BN from props * refactor: Combine into single if statement when checking if valid Eth/Etc address * refactor: Update utils without unnecessary return block
- Loading branch information
Showing
21 changed files
with
553 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.