Closed AMIRKHANEF closed 1 week ago
The changes in this pull request enhance the AddAddressOnly
and AddWatchOnlyFullScreen
components by introducing new utility functions for managing chain metadata based on genesisHash
. The control flow is modified to check for realAddress
before fetching proxy information, improving error handling in asynchronous operations. Additionally, the utility functions addressToChain
and getSubstrateAddress
are integrated to streamline address processing. These updates aim to improve the modularity and clarity of the components’ logic.
File Path | Change Summary |
---|---|
packages/extension-polkagate/src/popup/import/addWatchOnly/index.tsx |
Added getChain function, updated goToAccountDetail signature, improved error handling. |
packages/extension-polkagate/src/popup/import/addWatchOnlyFullScreen/index.tsx |
Added getChain , updated onChangeGenesis and onAdd functions to incorporate new logic. |
packages/extension-polkagate/src/util/utils.ts |
Added addressToChain function for address validation and chain retrieval. |
AddWatchOnlyFullScreen
involve similar logic for handling realAddress
and genesisHash
, which is also a focus in the main PR's AddAddressOnly
component.new feature
🐰 "In the garden of code, we hop and play,
With chains and addresses, we find our way.
New functions sprout, like carrots in rows,
Error handling blooms, as our logic grows.
FromrealAddress
togenesisHash
, we weave,
In this patch of joy, we all believe!" 🌱
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
1670
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Documentation