-
Notifications
You must be signed in to change notification settings - Fork 49
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 RMNHomeAddress in the OCR3Config #1449
Conversation
LCOV of commit
|
b26f529
to
88b67d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@@ -600,6 +618,7 @@ contract CCIPConfig_ConfigStateMachine is CCIPConfigSetup { | |||
CCIPConfigTypes.OCR3Config memory config = CCIPConfigTypes.OCR3Config({ | |||
pluginType: Internal.OCRPluginType.Commit, | |||
offrampAddress: abi.encodePacked(keccak256(abi.encode("offramp"))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@makramkd why are we using encodePacked? That's almost always bad and in this case it's the same as abi.encode, right? Let's replace them all with normal abi.encode's
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I used it in this case because encodePacked and encode give the same output. Its only used in tests, the contract only uses encode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced all the encodePacked with abi.encode
@@ -647,6 +666,7 @@ contract CCIPConfig_ConfigStateMachine is CCIPConfigSetup { | |||
cfgs[i] = CCIPConfigTypes.OCR3Config({ | |||
pluginType: Internal.OCRPluginType.Commit, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe not in scope for this PR but there's a very high amount of duplication going on here, we should fix
Can you do a quick replace all in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean a quick replace of the encodePacked
right?
Quality Gate passedIssues Measures |
Adding
rmnHomeAddress
in theOCR3Config
struct + generated wrappers.