Skip to content
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

Use name registry in recipients list #410

Merged
merged 3 commits into from
Oct 19, 2023

Conversation

Tbaut
Copy link
Collaborator

@Tbaut Tbaut commented Oct 18, 2023

closes #395

How to test:
In New tx > Send tokens

In the "to" field you'll have the addresses from your name registry too.

withAccountsFromAddressBook: boolean
}

export const useAccountBaseFromAccountList = (params?: Params) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we use here object destruction?

({ withAccountsFromAddressBook = false }: Params) => 

Copy link
Collaborator Author

@Tbaut Tbaut Oct 19, 2023

Choose a reason for hiding this comment

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

This is what I usually prefer too, but in this case, it doesn't allow Param to be undefined. I wanted to keep Params | undefined so as not to change anything in the useAccountBaseFromAccountList calls that are happening elsewhere. And because we can't destructure an undefined object, and afaik there's also no way to say something like Param | undefined and at the same time set { withAccountsFromAddressBook = false } as default value.. that's why I went for this.

@Tbaut Tbaut requested a review from Lykhoyda October 19, 2023 11:12
@Tbaut Tbaut merged commit 244076a into main Oct 19, 2023
@Tbaut Tbaut deleted the tbaut-use-name-registry-in-recipients branch October 19, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show the named multisig/proxy in the send modal dropdown
2 participants