-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check for invalid ValidatorManager in initialize
- Loading branch information
1 parent
e7e7af0
commit 12329fe
Showing
5 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
abi-bindings/go/validator-manager/PoAValidatorManager/PoAValidatorManager.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,9 @@ contract PoAValidatorManager is IPoAValidatorManager, OwnableUpgradeable { | |
internal | ||
onlyInitializing | ||
{ | ||
// Ensure the manager is valid by calling it | ||
manager.getChurnPeriodSeconds(); | ||
|
||
PoAValidatorManagerStorage storage $ = _getPoAValidatorManagerStorage(); | ||
$._manager = manager; | ||
} | ||
Check warning Code scanning / Slither Unused return Medium Check warning Code scanning / Slither Conformance to Solidity naming conventions Warning
Function PoAValidatorManager.__PoAValidatorManager_init_unchained(ValidatorManager) is not in mixedCase
|
||
|
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