Skip to content

[audit-09] fix: [TRST-L-6] Proper agreement version check #1206

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

Open
wants to merge 1 commit into
base: ma/indexing-payments-audit-fixes-08-L-5
Choose a base branch
from

Conversation

matiasedgeandnode
Copy link
Contributor

Screenshot 2025-07-24 at 10 47 35

Copy link

openzeppelin-code bot commented Jul 24, 2025

[audit-09] fix: [TRST-L-6] Proper agreement version check

Generated at commit: e3d2787b6d123b53ff87cebdc5e735403f5157a9

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
4
0
15
39
60
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-09-L-6 branch from fb374ff to e071a73 Compare July 24, 2025 14:06
@@ -226,7 +226,38 @@ contract SubgraphServiceIndexingAgreementAcceptTest is SubgraphServiceIndexingAg
subgraphService.acceptIndexingAgreement(ctx.indexers[0].allocationId, accepted);
}

function test_SubgraphService_AcceptIndexingAgreement_Revert_WhenAgreementAlreadyAllocated() public {}
function test_SubgraphService_AcceptIndexingAgreement_Revert_WhenAgreementAlreadyAllocated(
Copy link
Member

Choose a reason for hiding this comment

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

This test seems unrelated to the fix, right? In which case it would be good to include a test for when an invalid version is supplied

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The way the code is structured, I don't think we can test for that right now. i.e. only V1 is declared in the enum.

@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-08-L-5 branch from 54747b8 to cd51aba Compare August 3, 2025 18:45
@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-09-L-6 branch from e071a73 to 1541b21 Compare August 3, 2025 18:54
@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-08-L-5 branch from cd51aba to 836c0c2 Compare August 3, 2025 19:24
@matiasedgeandnode matiasedgeandnode force-pushed the ma/indexing-payments-audit-fixes-09-L-6 branch from 1541b21 to e3d2787 Compare August 3, 2025 19:25
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.

2 participants