[Provers N08] Inconsistent Declaration of Decoded Data#78
[Provers N08] Inconsistent Declaration of Decoded Data#78
Conversation
📝 WalkthroughWalkthroughThis PR standardizes the return signatures of Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…to fix/provers-N08
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/contracts/provers/taiko/ParentToChildProver.sol (1)
100-125: NatDoc@returntags are inconsistent across prover files.This file includes
@returntags (lines 103–105) forverifyStorageSlot, but the analogous functions inoptimism/ParentToChildProver.sol,optimism/ChildToParentProver.sol,arbitrum/ParentToChildProver.sol,arbitrum/ChildToParentProver.sol, andlinea/ChildToParentProver.solomit them. Since this PR is about consistency, consider either adding@returntags to all prover contracts or removing them here and in the other files that have them (taiko/ChildToParentProver.sol,linea/ParentToChildProver.sol).🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/contracts/provers/taiko/ParentToChildProver.sol` around lines 100 - 125, Remove the extra NatSpec `@return` tags so the prover NatSpec comments are consistent across contracts: delete the `@return account`, `@return slot`, and `@return value` lines from the `verifyStorageSlot` function's comment in ParentToChildProver (and similarly remove the `@return` lines in the other prover files that currently have them such as the Taiko `ChildToParentProver` and Linea `ParentToChildProver`), leaving the parameter and notice tags intact to match the other prover contracts' style.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/contracts/provers/taiko/ParentToChildProver.sol`:
- Around line 100-125: Remove the extra NatSpec `@return` tags so the prover
NatSpec comments are consistent across contracts: delete the `@return account`,
`@return slot`, and `@return value` lines from the `verifyStorageSlot`
function's comment in ParentToChildProver (and similarly remove the `@return`
lines in the other prover files that currently have them such as the Taiko
`ChildToParentProver` and Linea `ParentToChildProver`), leaving the parameter
and notice tags intact to match the other prover contracts' style.
ℹ️ Review info
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (11)
src/contracts/provers/arbitrum/ChildToParentProver.solsrc/contracts/provers/arbitrum/ParentToChildProver.solsrc/contracts/provers/linea/ChildToParentProver.solsrc/contracts/provers/linea/ParentToChildProver.solsrc/contracts/provers/optimism/ChildToParentProver.solsrc/contracts/provers/optimism/ParentToChildProver.solsrc/contracts/provers/scroll/ChildToParentProver.solsrc/contracts/provers/scroll/ParentToChildProver.solsrc/contracts/provers/taiko/ChildToParentProver.solsrc/contracts/provers/taiko/ParentToChildProver.solsrc/contracts/provers/zksync/ChildToParentProver.sol
|
I believe it's more clear to have the return of the |
Summary by CodeRabbit