Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
NindoK committed Jan 31, 2025
1 parent 86c279d commit 5a6d723
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions overridden_contracts/src/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -507,14 +507,10 @@ contract Gateway is IOGateway, IInitializable, IUpgradable {
//TODO maxDispatchGas should be probably be defined for all slashes, not only for one
try middleware.slash(uint48(slash.epoch), slash.operatorKey, slash.slashFraction) {}
catch Error(string memory err) {
emit UnableToProcessIndividualSlashS(
slash.operatorKey, slash.slashFraction, slash.epoch, err
);
emit UnableToProcessIndividualSlashS(slash.operatorKey, slash.slashFraction, slash.epoch, err);
continue;
} catch (bytes memory err) {
emit UnableToProcessIndividualSlashB(
slash.operatorKey, slash.slashFraction, slash.epoch, err
);
emit UnableToProcessIndividualSlashB(slash.operatorKey, slash.slashFraction, slash.epoch, err);
continue;
}
}
Expand Down
1 change: 0 additions & 1 deletion overridden_contracts/test/override_test/Gateway.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ contract GatewayTest is Test {
// We mock the call so that it does not revert
vm.mockCall(address(middleware), abi.encodeWithSelector(IMiddlewareBasic.slash.selector), abi.encode(10));


IOGateway(address(gateway)).setMiddleware(address(middleware));

// Since we are asserting all fields, the last one is a true, therefore meaning
Expand Down

0 comments on commit 5a6d723

Please sign in to comment.