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

fix: Response to audit of #3188 and #3089 #3208

Merged
merged 1 commit into from Jul 8, 2021
Merged

Conversation

nicholaspai
Copy link
Member

Motivation

Pull Request 3188

This PR addresses the comments from our review of PR 3061 and our batch review of PRs 3054, 3082, and 3092. We have the following comment:

  • The comment explaining the constructPrefix function says "appended as a prefix" instead of "prepended".

Pull Request 3089

This PR modifies the chainbridge SourceGovernor and SinkGovernor contracts so the cross-chain messages cannot specify an ETH amount. We don't have any comments.

It also implements the Polygon Tunnel for governance actions. In particular, it introduces GovernorRootTunnel and GovernorChildTunnel. Our only comment is that line 19 of GovernorChildTunnel.sol references a non-existent _publishPrice function.

@@ -16,7 +16,7 @@ contract GovernorChildTunnel is FxBaseChildTunnel {
* @dev The data will be received automatically from the state receiver when the state is synced between Ethereum
* and Polygon. This will revert if the Root chain sender is not the `fxRootTunnel` contract.
* @param sender The sender of `data` from the Root chain.
* @param data ABI encoded params with which to call `_publishPrice`.
* @param data ABI encoded params to include in delegated transaction.
Copy link
Member Author

Choose a reason for hiding this comment

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

Pull Request 3089

This PR modifies the chainbridge SourceGovernor and SinkGovernor contracts so the cross-chain messages cannot specify an ETH amount. We don't have any comments.

It also implements the Polygon Tunnel for governance actions. In particular, it introduces GovernorRootTunnel and GovernorChildTunnel. Our only comment is that line 19 of GovernorChildTunnel.sol references a non-existent _publishPrice function.

@@ -98,7 +98,7 @@ library AncillaryData {

/**
* @notice Helper method that returns the left hand side of a "key:value" pair plus the colon ":" and a leading
* comma "," if the `currentAncillaryData` is not empty. The return value is intended to be appended as a prefix to
* comma "," if the `currentAncillaryData` is not empty. The return value is intended to be prepended as a prefix to
Copy link
Member Author

Choose a reason for hiding this comment

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

Pull Request 3188

This PR addresses the comments from our review of PR 3061 and our batch review of PRs 3054, 3082, and 3092. We have the following comment:

  • The comment explaining the constructPrefix function says "appended as a prefix" instead of "prepended".

@nicholaspai nicholaspai added the oz-review Ready for audit by OZ label Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
oz-review Ready for audit by OZ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants