Skip to content

Commit

Permalink
sho's fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant committed Sep 18, 2024
1 parent 39b9383 commit cc64c85
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions script/deploy/devnet/operatorSets/PopulateSRC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ contract PopulateSRC is Script, Test, ExistingDeploymentParser {
_delegationManager: delegationManager,
_avsDirectory: avsDirectory,
_allocationManager: allocationManager,
_maxTotalCharge: 100 ether,
_minBalanceThreshold: 0 ether,
_minProofsDuration: 20,
_minPrepaidProofs: 20,
_verifier: address(0),
_imageId: bytes32(0)
});
Expand All @@ -39,6 +38,7 @@ contract PopulateSRC is Script, Test, ExistingDeploymentParser {
msg.sender,
msg.sender,
1 minutes,
100 ether,
0,
0
)
Expand Down
5 changes: 2 additions & 3 deletions src/contracts/core/StakeRootCompendium.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ contract StakeRootCompendium is StakeRootCompendiumStorage {
IDelegationManager _delegationManager,
IAVSDirectory _avsDirectory,
IAllocationManager _allocationManager,
uint256 _maxTotalCharge,
uint256 _minBalanceThreshold,
uint256 _minProofsDuration,
uint256 _minPrepaidProofs,
address _verifier,
bytes32 _imageId
) StakeRootCompendiumStorage(_delegationManager, _avsDirectory, _allocationManager, _maxTotalCharge, _minBalanceThreshold, _minProofsDuration, _verifier, _imageId) {}
) StakeRootCompendiumStorage(_delegationManager, _avsDirectory, _allocationManager, _minBalanceThreshold, _minPrepaidProofs, _verifier, _imageId) {}

function initialize(address _owner, address _rootConfirmer, uint32 _proofIntervalSeconds, uint96 _maxTotalCharge, uint96 _chargePerStrategy, uint96 _chargePerOperatorSet) public initializer {

Check notice

Code scanning / Slither

Missing zero address validation Low

__Ownable_init();
Expand Down
1 change: 0 additions & 1 deletion src/contracts/core/StakeRootCompendiumStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ abstract contract StakeRootCompendiumStorage is IStakeRootCompendium, OwnableUpg
IDelegationManager _delegationManager,
IAVSDirectory _avsDirectory,
IAllocationManager _allocationManager,
uint256 _maxTotalCharge,
uint256 _minBalanceThreshold,
uint256 _minPrepaidProofs,
address _verifier,
Expand Down

0 comments on commit cc64c85

Please sign in to comment.