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

External packing lib #604

Draft
wants to merge 2 commits into
base: prorated-rewards
Choose a base branch
from
Draft

Conversation

cam-schultz
Copy link
Contributor

Why this should be merged

Marks the methods in ValidatorMessages.sol as external to save on contract size for the validator managers. See failing test example: https://github.com/ava-labs/teleporter/actions/runs/11375625546/job/31646613603?pr=603

How this works

Changing the packing functions to external breaks the unit tests since the vm calls are directed to ValidatorMessages instead of the validator manager under test. As a (hacky) workaround, I added an internal version of ValidatorMessages to contracts/validator-messages/tests/utils.

How this was tested

CI

How is this documented

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Slither found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@cam-schultz cam-schultz changed the base branch from main to prorated-rewards October 17, 2024 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog 🗄️
Development

Successfully merging this pull request may close these issues.

1 participant