Skip to content

Commit d6783a9

Browse files
committed
fix: use encodeCall instead of unsafe alternatives (OZ L-10)
Signed-off-by: Tomás Migone <[email protected]>
1 parent c55ee05 commit d6783a9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/horizon/contracts/staking/HorizonStaking.sol

+3-6
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,9 @@ contract HorizonStaking is HorizonStakingBase, IHorizonStakingMain {
407407
// Forward call to staking extension
408408
// solhint-disable-next-line avoid-low-level-calls
409409
(bool success, ) = STAKING_EXTENSION_ADDRESS.delegatecall(
410-
abi.encodeWithSelector(
411-
IHorizonStakingExtension.legacySlash.selector,
412-
serviceProvider,
413-
tokens,
414-
tokensVerifier,
415-
verifierDestination
410+
abi.encodeCall(
411+
IHorizonStakingExtension.legacySlash,
412+
(serviceProvider, tokens, tokensVerifier, verifierDestination)
416413
)
417414
);
418415
require(success, HorizonStakingLegacySlashFailed());

0 commit comments

Comments
 (0)