Skip to content

Conversation

@nicholaspai
Copy link
Member

Also refactors the SpokePool.sol code so that the validation of merkle leaf properties are done as close to their usage within the logic as possible

@nicholaspai nicholaspai marked this pull request as ready for review January 4, 2024 16:51
address[] memory refundAddresses,
uint256[] memory refundAmounts
) internal view {
if (_chainId != chainId()) revert InvalidChainId();
Copy link
Member Author

Choose a reason for hiding this comment

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

I moved these two checks so that they're closer to the logic that uses the variables checked

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 good for readability

Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM!

address[] memory refundAddresses,
uint256[] memory refundAmounts
) internal view {
if (_chainId != chainId()) revert InvalidChainId();
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 good for readability

Copy link
Contributor

@pxrl pxrl left a comment

Choose a reason for hiding this comment

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

LGTM

@nicholaspai nicholaspai merged commit 1bebf1b into master Jan 4, 2024
@nicholaspai nicholaspai deleted the npai/distribute-relayer-refund-tests branch January 4, 2024 23:32
@nicholaspai nicholaspai restored the npai/distribute-relayer-refund-tests branch January 5, 2024 16: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.

4 participants