-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Issue #2565]
Cross-chain Safe search
#2630
[Issue #2565]
Cross-chain Safe search
#2630
Conversation
…turn found network prefixes
✅ Deploy Preview for decent-interface-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did some clean. Summary
- Reverted Changes in
useIsSafe
hook - moved specialized code into
useSearchDAO
hook for a smoother multi-chain experience - added new
useResolvedAddressMultiChain()
hook, similar to ouruseAddress
but checks multiple networks - updated
useSearchDAO
hook accordingly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New hook to handle multi-chain address resolving. similar to our useAddress
hook.
similarly takes a string as an input, but instead of resolving a single chain, loops through all supported networks and resolves the input if its a valid ENS name.
If input is an Address returns valid on all networks
const [searchString, setSearchString] = useState<string>(''); | ||
const [errorMessage, setErrorMessage] = useState<string>(); | ||
|
||
const { address, isValid, isLoading: isAddressLoading } = useAddress(searchString); | ||
const { isSafe, isSafeLoading } = useIsSafe(address); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted changes I made to useIsSafe
and instead of continue updating that hook for use here just pulled in what was needed and removed relying on conditional useEffect
and more intentionally call to resolve searchInput.
…tdao/decent-interface into issue/2565-cross-chain-dao-search
Well was trying to show DAO is found on Sepolia, wallet is connected to Ethereum.