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

feat: Migrate vote tab to wagmi #254

Merged

Conversation

karelianpie
Copy link
Member

Migrate VoteTab to wagmi, feature branch of #248

@karelianpie karelianpie self-assigned this Jun 23, 2023
@vercel
Copy link

vercel bot commented Jun 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yearnfi ❌ Failed (Inspect) Jun 27, 2023 5:11am

Copy link
Collaborator

@Majorfi Majorfi left a comment

Choose a reason for hiding this comment

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

Minor changes!

Comment on lines 84 to 87
type TDelegateVote = TWriteTransaction & {delegateAddress: TAddress};
export async function delegateVote(props: TDelegateVote): Promise<TTxResponse> {
assertAddress(props.contractAddress);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
type TDelegateVote = TWriteTransaction & {delegateAddress: TAddress};
export async function delegateVote(props: TDelegateVote): Promise<TTxResponse> {
assertAddress(props.contractAddress);
type TDelegateVote = TWriteTransaction & {delegateAddress: TAddress};
export async function delegateVote(props: TDelegateVote): Promise<TTxResponse> {
assertAddress(props.contractAddress);
assertAddress(props.delegateAddress);

Copy link
Member Author

Choose a reason for hiding this comment

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

For these cases, should we use the new util from #253 (comment)?

Copy link
Member Author

Choose a reason for hiding this comment

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

Like this d8dbcdb

Had to refactor the util function to handle the cases a bit better

apps/veyfi/components/VoteTab.tsx Show resolved Hide resolved
@karelianpie karelianpie force-pushed the feat/veyfi-gauges-merged-vote-tab branch from d75c43c to bc1da6e Compare June 27, 2023 05:09
@karelianpie karelianpie merged commit 4afa420 into feat/veyfi-gauges-merged Jun 27, 2023
6 of 7 checks passed
@karelianpie karelianpie deleted the feat/veyfi-gauges-merged-vote-tab branch June 27, 2023 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🟢 Done
Development

Successfully merging this pull request may close these issues.

3 participants