-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add custom errors #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't move errors outside of the contract which use them.
Creating a big single contract for errors, to be used as parent of all other contracts is not a good idea at all.
# Conflicts: # contracts/common/ReentrancyGuard.sol # contracts/ownership/Ownable.sol # contracts/sfc/NodeDriver.sol # contracts/sfc/NodeDriverAuth.sol # contracts/sfc/SFCBase.sol # contracts/sfc/SFCLib.sol # contracts/sfc/Updater.sol # contracts/test/StubEvmWriter.sol # contracts/test/UnitTestSFC.sol # test/NodeDriver.ts # test/SFC.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems ok (at least if we suppose merging SFCBase with SFC ad SFCLib in future - otherwise we may want to reconsider sorting errors into appropriate contract)
This PR adds custom errors instead of
require
statements.