-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Current best practice is to throw custom error types rather than strings on revert cases, and to append the contract name to the front of custom error types with `__` in between. This PR updates all revert cases in the FlexibleVotingClient.sol to use this convention. Since you cannot throw custom error types in require statements except in the latest version of solidity, this PR also converts from require statements to conditionals.
- Loading branch information
1 parent
1a3e644
commit a4a17c1
Showing
3 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters