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

Remove linear erc721 voting #1669

Merged
merged 11 commits into from
May 23, 2024
Merged

Conversation

adamgall
Copy link
Member

@adamgall adamgall commented May 7, 2024

Please review and merge #1668 first.

Copy link

netlify bot commented May 7, 2024

Deploy Preview for fractal-dev ready!

Name Link
🔨 Latest commit bef29c0
🔍 Latest deploy log https://app.netlify.com/sites/fractal-dev/deploys/664a648c2c86c2000837ce0e
😎 Deploy Preview https://deploy-preview-1669.app.dev.fractalframework.xyz
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@Da-Colon Da-Colon left a comment

Choose a reason for hiding this comment

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

👍

tokenId,
);
const tokenVoted = await votingContract.read.hasVoted([
Number(_proposalId),
Copy link
Contributor

Choose a reason for hiding this comment

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

Can proposal Id ever be anything but a number? possibly so? just wanted to ask anyway

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call out. Found some bugs here. Fixing now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, fixed the bugs (5fade89).

I also moved where this cast was happening, but TL;DR is that by the time this code here is executing, _proposalId, although a string, is a number. I certainly don't love this. The deeper issue is that we're sharing so many types/interfaces between erc20/erc721/multisig/snapshot proposals, when we really shouldn't be.

@adamgall adamgall force-pushed the remove-linearErc20Voting branch from 5ce6725 to 97c6677 Compare May 7, 2024 23:29
@adamgall adamgall force-pushed the remove-linearErc721Voting branch 2 times, most recently from 4e763e6 to 0592a19 Compare May 8, 2024 00:14
@adamgall adamgall force-pushed the remove-linearErc20Voting branch from e9b9a7f to e8a48a7 Compare May 8, 2024 20:12
@adamgall adamgall force-pushed the remove-linearErc721Voting branch from 0592a19 to 128214a Compare May 8, 2024 20:13
@adamgall adamgall force-pushed the remove-linearErc20Voting branch from e8a48a7 to 5dafa68 Compare May 14, 2024 13:52
@adamgall adamgall force-pushed the remove-linearErc721Voting branch from 128214a to afb326c Compare May 14, 2024 13:53
@adamgall adamgall force-pushed the remove-linearErc20Voting branch from 5dafa68 to 7757f01 Compare May 15, 2024 15:27
@adamgall adamgall force-pushed the remove-linearErc721Voting branch from afb326c to 143efd2 Compare May 15, 2024 15:27
@adamgall adamgall force-pushed the remove-linearErc20Voting branch from 7757f01 to 6f80110 Compare May 15, 2024 16:41
@adamgall adamgall force-pushed the remove-linearErc721Voting branch from 143efd2 to 060a635 Compare May 15, 2024 16:41
@adamgall adamgall force-pushed the remove-linearErc20Voting branch from e13ad9f to ae94995 Compare May 19, 2024 20:43
@adamgall adamgall force-pushed the remove-linearErc721Voting branch from 060a635 to bef29c0 Compare May 19, 2024 20:43
@adamgall adamgall deleted the branch root/remove-typechain May 23, 2024 11:54
@adamgall adamgall closed this May 23, 2024
@adamgall adamgall reopened this May 23, 2024
@adamgall adamgall changed the base branch from remove-linearErc20Voting to root/remove-typechain May 23, 2024 12:01
@adamgall adamgall marked this pull request as ready for review May 23, 2024 12:01
@adamgall adamgall force-pushed the remove-linearErc721Voting branch from bef29c0 to bfcaeac Compare May 23, 2024 12:03
@adamgall adamgall merged commit 34b242e into root/remove-typechain May 23, 2024
3 checks passed
@adamgall adamgall deleted the remove-linearErc721Voting branch May 23, 2024 13:01
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.

3 participants