Skip to content

[N-01] Timelock audit - #438

Merged
ericnordelo merged 1 commit into
mainfrom
fix/-timelock-audit-N-01
Jul 6, 2026
Merged

[N-01] Timelock audit#438
ericnordelo merged 1 commit into
mainfrom
fix/-timelock-audit-N-01

Conversation

@ericnordelo

@ericnordelo ericnordelo commented Jul 6, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Bug Fixes
    • Updated several error messages shown when timed operations fail, making them clearer and more consistent.
    • Improved wording for role mismatch, minimum delay, and parameter/action mismatch errors without changing any behavior.

@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ec671158-21da-4b4e-a451-d9eb8675b520

📥 Commits

Reviewing files that changed from the base of the PR and between bb2405c and f19e2c0.

📒 Files selected for processing (1)
  • contracts/timelock/sources/timelock.move

📝 Walkthrough

Walkthrough

Reworded several #[error] abort reason strings in the timelock Move contract, including EWrongRole, EDelayTooShort, EScheduleOverflow, EWrongParams, and EWrongAction. Error codes and control flow remain unchanged.

Changes

Timelock error message updates

Layer / File(s) Summary
Reworded error constant messages
contracts/timelock/sources/timelock.move
Updated abort reason text for EWrongRole, EDelayTooShort, EScheduleOverflow, EWrongParams, and EWrongAction constants; error codes and logic unchanged.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

  • OpenZeppelin/contracts-sui#409: Both PRs touch the timelock error handling in contracts/timelock/sources/timelock.move, with the original PR introducing the error constants this PR revises.

Suggested reviewers: 0xNeshi, bidzyyys, immrsd

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is missing entirely and does not follow the required template sections. Add the required template content: issue number, a summary of the changes, and the PR checklist entries for Tests, Documentation, and Changelog.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is related to the timelock audit changes, though it is broader than the specific error-message updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/-timelock-audit-N-01

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.38%. Comparing base (bb2405c) to head (f19e2c0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #438      +/-   ##
==========================================
- Coverage   96.59%   96.38%   -0.21%     
==========================================
  Files          34       34              
  Lines        3405     3405              
  Branches      794      794              
==========================================
- Hits         3289     3282       -7     
  Misses         70       70              
- Partials       46       53       +7     
Flag Coverage Δ
contracts/access 65.46% <ø> (ø)
contracts/allowance 52.40% <ø> (ø)
contracts/finance 26.07% <ø> (ø)
contracts/timelock 54.57% <ø> (ø)
contracts/utils 44.09% <ø> (ø)
math/core 86.38% <ø> (-0.52%) ⬇️
math/fixed_point 63.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bidzyyys bidzyyys left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@ericnordelo
ericnordelo merged commit 1face43 into main Jul 6, 2026
32 checks passed
@ericnordelo
ericnordelo deleted the fix/-timelock-audit-N-01 branch July 6, 2026 14:52
This was referenced Jul 9, 2026
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.

2 participants