Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

feat: Hooks - useAccounts. #34

Closed
wants to merge 1 commit into from
Closed

feat: Hooks - useAccounts. #34

wants to merge 1 commit into from

Conversation

nicolad
Copy link

@nicolad nicolad commented Apr 4, 2023

Resolves #

  • There is an associated issue (required)
  • The change is described in detail
  • There are new or updated tests validating the change (if applicable)

Description

This adds useAccounts hook, required in this task:

#27

@nicolad nicolad changed the title Hooks: useAccounts. feat: Hooks - useAccounts. Apr 4, 2023
}

export const useAccounts = (): AccountWithBalance[] | undefined => {
const [accounts, setAccounts] = useState<AccountWithBalance[]>();
Copy link
Contributor

@DoubleOTheven DoubleOTheven Apr 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @nicolad . This hook is a duplicate of existing features. We have accounts in useExtension(). We also have the useBalance() that will return balance information.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like useBalances would make sense, but we need to specify which chain you are interested in. This feature is out of scope for the v 1.0.0 release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants