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

Improve CCIP Contract Reader Querying usage #14935

Merged
merged 3 commits into from
Nov 6, 2024

Conversation

ilija42
Copy link
Contributor

@ilija42 ilija42 commented Oct 24, 2024

related chainlink-ccip PR smartcontractkit/chainlink-ccip#267

Also relates to
CCIP-3866
and
CCIP-3865

Copy link
Contributor

github-actions bot commented Oct 24, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@ilija42 ilija42 force-pushed the CCIP-2896-improve-ccip-contract-reader-querying branch from e895eb2 to 0f768d5 Compare October 24, 2024 11:52
@ilija42 ilija42 changed the title Fix Contract Reader data word index calculation Improve CCIP Contract Reader Querying Oct 24, 2024
@ilija42 ilija42 marked this pull request as ready for review October 24, 2024 11:53
@ilija42 ilija42 requested review from a team as code owners October 24, 2024 11:53
@ilija42 ilija42 marked this pull request as draft October 24, 2024 15:31
@ilija42 ilija42 force-pushed the CCIP-2896-improve-ccip-contract-reader-querying branch from 96018a4 to 2d78005 Compare October 29, 2024 11:11
@ilija42 ilija42 marked this pull request as ready for review October 29, 2024 11:11
@ilija42 ilija42 force-pushed the CCIP-2896-improve-ccip-contract-reader-querying branch from 2d78005 to e866958 Compare October 29, 2024 13:11
@ilija42 ilija42 requested a review from a team as a code owner October 29, 2024 13:11
@ilija42 ilija42 force-pushed the CCIP-2896-improve-ccip-contract-reader-querying branch from e866958 to c2c482e Compare October 30, 2024 09:13
patrick-dowell
patrick-dowell previously approved these changes Oct 30, 2024
Copy link
Collaborator

@patrick-dowell patrick-dowell left a comment

Choose a reason for hiding this comment

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

I think the code itself is okay as is, but it's pretty hard to follow and seems like it'd be a little fragile if someone came in and tried to change things.

I'd recommend more code comments to explain what the various methods are actually doing and, in addition, consider adding unit tests to the helper methods themselves to verify that they are calculating the indices properly. This would make it easier for someone to come in and modify things without breaking some of the high level tests and struggle to figure out what went wrong.

@ilija42 ilija42 force-pushed the CCIP-2896-improve-ccip-contract-reader-querying branch 2 times, most recently from 91a43df to 71ac32c Compare November 1, 2024 16:09
silaslenihan
silaslenihan previously approved these changes Nov 1, 2024
Copy link
Contributor

@silaslenihan silaslenihan left a comment

Choose a reason for hiding this comment

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

LGTM

@makramkd makramkd requested a review from a team as a code owner November 6, 2024 14:00
@ilija42 ilija42 force-pushed the CCIP-2896-improve-ccip-contract-reader-querying branch from 31ccb25 to 605fbf6 Compare November 6, 2024 14:10
@ilija42 ilija42 changed the title Improve CCIP Contract Reader Querying Improve CCIP Contract Reader Querying usage Nov 6, 2024
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.

8 participants