-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: Migrate vote tab to wagmi #254
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Minor changes!
type TDelegateVote = TWriteTransaction & {delegateAddress: TAddress}; | ||
export async function delegateVote(props: TDelegateVote): Promise<TTxResponse> { | ||
assertAddress(props.contractAddress); | ||
|
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.
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); | |
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.
For these cases, should we use the new util from #253 (comment)?
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.
Like this d8dbcdb
Had to refactor the util function to handle the cases a bit better
e548e58
to
a248253
Compare
d8dbcdb
to
d75c43c
Compare
d75c43c
to
bc1da6e
Compare
Migrate
VoteTab
to wagmi, feature branch of #248