Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# The number of runs specifies roughly how often each opcode of the deployed code will be executed
# across the life-time of the contract. This means it is a trade-off parameter between code size (deploy cost)
# and code execution cost (cost after deployment).
optimizer_runs = 100
optimizer_runs = 200

# Test Configuration

Expand Down
8 changes: 4 additions & 4 deletions src/libraries/QuorumBitmapHistoryLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ library QuorumBitmapHistoryLib {
function currentOperatorBitmap(
mapping(bytes32 => ISlashingRegistryCoordinator.QuorumBitmapUpdate[]) storage self,
bytes32 operatorId
) internal view returns (uint192) {
) external view returns (uint192) {
uint256 historyLength = self[operatorId].length;
if (historyLength == 0) {
return 0;
Expand All @@ -68,7 +68,7 @@ library QuorumBitmapHistoryLib {
mapping(bytes32 => ISlashingRegistryCoordinator.QuorumBitmapUpdate[]) storage self,
uint32 blockNumber,
bytes32[] memory operatorIds
) internal view returns (uint32[] memory) {
) external view returns (uint32[] memory) {
uint32[] memory indices = new uint32[](operatorIds.length);
for (uint256 i = 0; i < operatorIds.length; i++) {
indices[i] = getQuorumBitmapIndexAtBlockNumber(self, blockNumber, operatorIds[i]);
Expand All @@ -87,7 +87,7 @@ library QuorumBitmapHistoryLib {
bytes32 operatorId,
uint32 blockNumber,
uint256 index
) internal view returns (uint192) {
) external view returns (uint192) {
ISlashingRegistryCoordinator.QuorumBitmapUpdate memory quorumBitmapUpdate =
self[operatorId][index];

Expand Down Expand Up @@ -116,7 +116,7 @@ library QuorumBitmapHistoryLib {
mapping(bytes32 => ISlashingRegistryCoordinator.QuorumBitmapUpdate[]) storage self,
bytes32 operatorId,
uint192 newBitmap
) internal {
) external {
uint256 historyLength = self[operatorId].length;

if (historyLength == 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/SignatureCheckerLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ library SignatureCheckerLib {
address signer,
bytes32 digestHash,
bytes memory signature
) internal view {
) external view {
if (!SignatureCheckerUpgradeable.isValidSignatureNow(signer, digestHash, signature)) {
revert InvalidSignature();
}
Expand Down