Skip to content

Commit e10a80d

Browse files
committed
feat: update which functions are pausable
1 parent 5d16357 commit e10a80d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

contracts/src/core/AlignedLayerServiceManager.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ contract AlignedLayerServiceManager is
262262
bytes32 batchMerkleRoot,
263263
bytes memory merkleProof,
264264
uint256 verificationDataBatchIndex
265-
) external view onlyWhenNotPaused(3) returns (bool) {
265+
) external view onlyWhenNotPaused(2) returns (bool) {
266266
return this.verifyBatchInclusion(
267267
proofCommitment,
268268
pubInputCommitment,
@@ -275,11 +275,11 @@ contract AlignedLayerServiceManager is
275275
);
276276
}
277277

278-
function setAggregator(address _alignedAggregator) public onlyOwner onlyWhenNotPaused(4) {
278+
function setAggregator(address _alignedAggregator) public onlyOwner {
279279
alignedAggregator = _alignedAggregator;
280280
}
281281

282-
function withdraw(uint256 amount) external onlyWhenNotPaused(5) {
282+
function withdraw(uint256 amount) external onlyWhenNotPaused(3) {
283283
if (batchersBalances[msg.sender] < amount) {
284284
revert InsufficientFunds(
285285
msg.sender,
@@ -298,7 +298,7 @@ contract AlignedLayerServiceManager is
298298
return batchersBalances[account];
299299
}
300300

301-
function depositToBatcher(address account) external payable onlyWhenNotPaused(6) {
301+
function depositToBatcher(address account) external payable onlyWhenNotPaused(4) {
302302
_depositToBatcher(account, msg.value);
303303
}
304304

@@ -310,7 +310,7 @@ contract AlignedLayerServiceManager is
310310
emit BatcherBalanceUpdated(account, batchersBalances[account]);
311311
}
312312

313-
receive() external payable onlyWhenNotPaused(7) {
313+
receive() external payable onlyWhenNotPaused(5) {
314314
_depositToBatcher(msg.sender, msg.value);
315315
}
316316

0 commit comments

Comments
 (0)