Skip to content

Commit

Permalink
fix: statemind-Missing slasher check
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Dec 2, 2024
1 parent 9992230 commit 3101f0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/managers/VaultManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ abstract contract VaultManager is BaseManager {
error InactiveVaultSlash();
error UnknownSlasherType();
error NonVetoSlasher();
error NoSlasher();
error TooOldTimestampSlash();
error NotOperatorSpecificVault();

Expand Down Expand Up @@ -594,6 +595,10 @@ abstract contract VaultManager is BaseManager {
}

address slasher = IVault(vault).slasher();
if (slasher == address(0)) {
revert NoSlasher();
}

uint64 slasherType = IEntity(slasher).TYPE();
resp.vault = vault;
resp.slasherType = slasherType;
Expand Down

0 comments on commit 3101f0f

Please sign in to comment.