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

add additional unit tests demonstrating delegation flows #138

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

MikeHathaway
Copy link
Collaborator

Description of change

High level

  • <DESCRIP_OF_CHANGE>
    • <DESCRIP_OF_SUBCHANGE>

Description of bug or vulnerability and solution

  • <PARAGRAPH_EXP_OF_VULN_BUG>
  • <PARAGRAPH_EXP_OF_HOW_CHANGE_SOLVES_VULN_OR_BUG>

Contract size

Pre Change

<PASTE_OUTPUT_HERE>

Post Change

<PASTE_OUTPUT_HERE>

Gas usage

Pre Change

<PASTE_OUTPUT_HERE>

Post Change

<PASTE_OUTPUT_HERE>

Copy link
Contributor

@EdNoepel EdNoepel left a comment

Choose a reason for hiding this comment

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

I don't understand what testMultipleDelegationDifferentDelegatee is testing, but the first test is quite helpful.

function testMultipleDelegationDifferentDelegatee() external {
address delegator = address(2222);
address delegate1 = address(3333);
address delegate2 = address(4444);
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the role of delegate2 in this test? Nobody delegates to this actor, and we confirm their voting power is 0.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, same question as Ed

Copy link
Contributor

@ith-harvey ith-harvey left a comment

Choose a reason for hiding this comment

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

LGTM

@EdNoepel EdNoepel merged commit 3e1b03f into main Dec 20, 2023
2 of 3 checks passed
@EdNoepel EdNoepel deleted the add-delegation-tests branch December 20, 2023 21:39
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