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: Add reason to vote #71

Merged
merged 11 commits into from
Feb 28, 2023
Merged

feat: Add reason to vote #71

merged 11 commits into from
Feb 28, 2023

Conversation

pscott
Copy link
Collaborator

@pscott pscott commented Feb 22, 2023

Adds an optional string reason to the vote function. This reason will be emitted in the VoteCreated event.

Closes #65

@pscott
Copy link
Collaborator Author

pscott commented Feb 22, 2023

Blocked by foundry-rs/foundry#4409

@pscott
Copy link
Collaborator Author

pscott commented Feb 24, 2023

Blocked by foundry-rs/foundry#4409

This was not a blocker, I was actually being dumb, thx @Orland0x for helping my stupid ass :)

@pscott pscott requested a review from Orland0x February 24, 2023 14:25
@@ -6,6 +6,7 @@ import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import "src/types.sol";
import { SXHash } from "src/utils/SXHash.sol";
import "forge-std/console2.sol";
Copy link
Contributor

Choose a reason for hiding this comment

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

^

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice :) 9cef187

@Orland0x
Copy link
Contributor

Orland0x commented Feb 28, 2023

alright as of this conversation we should call it voteMetadataUri and make it a string so its consistent with the other metadatas

@pscott
Copy link
Collaborator Author

pscott commented Feb 28, 2023

alright as of this conversation we should call it voteMetadataUri and make it a string so its consistent with the other metadatas

Updated :)

@Orland0x
Copy link
Contributor

uTACK

Orland0x
Orland0x previously approved these changes Feb 28, 2023
@Orland0x Orland0x merged commit 596b76c into main Feb 28, 2023
@Orland0x Orland0x deleted the feat_add_reason_parameter branch October 11, 2023 10:40
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.

Add optional reason parameter on the vote function
3 participants