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

Refactors of the smart contracts - using error instead of reverts #167

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

josojo
Copy link
Collaborator

@josojo josojo commented Jan 4, 2024

and other minor modifications

@josojo josojo requested a review from edmundedgar January 4, 2024 15:11

contract ChainIdManager is Owned {
contract ChainIdManager is Ownable {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It feels better to depend on public library

@@ -1,16 +0,0 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This lib was unused

@@ -79,8 +76,7 @@ contract ForkonomicToken is
/// @dev Allows anyone to prepare the splitting of tokens
/// by burning them
/// @param amount The amount of tokens to burn
function prepareSplittingTokens(uint256 amount) public {
require(children[0] != address(0), "Children not created yet");
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

replaced with modifier onlyAfterForking

@josojo josojo merged commit a82b25b into main Jan 5, 2024
3 checks passed
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