-
Notifications
You must be signed in to change notification settings - Fork 158
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
feat: added useAddress and getAddress #1170
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -6,8 +6,9 @@ import { useConnect, useConnectors } from 'wagmi'; | |||
import { WalletPreference } from './form/wallet-type'; | |||
|
|||
export enum OnchainKitComponent { | |||
Transaction = 'transaction', | |||
Identity = 'identity', |
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.
Adding Identity as well, so we can test that too.
}); | ||
|
||
useEffect(() => { | ||
console.log('useAddress default', 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.
Testing both the components and the utilities.
@@ -12,11 +12,10 @@ import { getAvatar } from '../utils/getAvatar'; | |||
*/ | |||
export const useAvatar = ( | |||
{ ensName, chain = mainnet }: UseAvatarOptions, | |||
queryOptions?: UseAvatarQueryOptions, | |||
queryOptions?: UseQueryOptions, |
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.
Simplifing the type
What changed? Why?
Notes to reviewers
How has it been tested?