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

feat: add hash-checkpoint contract #142

Merged
merged 8 commits into from
Dec 18, 2023
Merged

feat: add hash-checkpoint contract #142

merged 8 commits into from
Dec 18, 2023

Conversation

DavidMinarsch
Copy link
Contributor

No description provided.

contracts/utils/HashCheckpoint.sol Outdated Show resolved Hide resolved
contracts/utils/HashCheckpoint.sol Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Nov 23, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (7afda42) 99.73% compared to head (08e2ef7) 99.15%.

Files Patch % Lines
contracts/utils/HashCheckpoint.sol 72.72% 9 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #142      +/-   ##
==========================================
- Coverage   99.73%   99.15%   -0.58%     
==========================================
  Files          19       20       +1     
  Lines        1508     1541      +33     
  Branches      283      287       +4     
==========================================
+ Hits         1504     1528      +24     
- Misses          4       13       +9     
Flag Coverage Δ
unittests 99.15% <72.72%> (-0.58%) ⬇️

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

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

pragma solidity ^0.8.21;

/// @title Hash Checkpoint - Smart contract for checkpointing IPFS hashes on-chain
/// @author Aleksandr Kuperman - <[email protected]>
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to change the author :D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lol you'll be the author eventually


/// @dev Changes the owner address.
/// @param newOwner Address of a new owner.
function changeOwner(address newOwner) external virtual {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably no need to be a virtual function? For all of them below as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess no harm

@DavidMinarsch DavidMinarsch marked this pull request as ready for review December 18, 2023 16:22
@DavidMinarsch DavidMinarsch merged commit 6e825e2 into main Dec 18, 2023
2 checks passed
@DavidMinarsch DavidMinarsch deleted the hash-checkpoint branch December 18, 2023 16:23
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