From 9784d5d01e6fcfaea779bb4e7dd1b78376e75bff Mon Sep 17 00:00:00 2001 From: Baptiste Oueriagli Date: Mon, 15 Apr 2024 07:38:33 +0000 Subject: [PATCH] chore(vetoer-set): remove obsolete uint8 cast --- packages/contracts-bedrock/src/Safe/VetoerSet/OwnerGuard.sol | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/contracts-bedrock/src/Safe/VetoerSet/OwnerGuard.sol b/packages/contracts-bedrock/src/Safe/VetoerSet/OwnerGuard.sol index 57de4360ca8d5..27a1c8440c963 100644 --- a/packages/contracts-bedrock/src/Safe/VetoerSet/OwnerGuard.sol +++ b/packages/contracts-bedrock/src/Safe/VetoerSet/OwnerGuard.sol @@ -55,8 +55,7 @@ contract OwnerGuard is ISemver, BaseGuard { // Set the initial `maxOwnerCount`, to the greater between `INITIAL_MAX_OWNER_COUNT` and the current owner // count. - uint256 ownerCount = _safe.getOwners().length; - maxOwnerCount = uint8(FixedPointMathLib.max(INITIAL_MAX_OWNER_COUNT, ownerCount)); + maxOwnerCount = FixedPointMathLib.max(INITIAL_MAX_OWNER_COUNT, _safe.getOwners().length); } /// @notice Inherited hook from the `Guard` interface that is run right before the transaction is executed