From 4623d0031000f4bd8229f827e4c89243db6088f0 Mon Sep 17 00:00:00 2001 From: DrZoltanFazekas Date: Mon, 9 Dec 2024 08:30:29 +0100 Subject: [PATCH] Assert owner is not one of the stakers used in the tests --- test/BaseDelegation.t.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/BaseDelegation.t.sol b/test/BaseDelegation.t.sol index 48d68ab..e863605 100644 --- a/test/BaseDelegation.t.sol +++ b/test/BaseDelegation.t.sol @@ -32,6 +32,8 @@ abstract contract BaseDelegationTest is Test { constructor() { uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); owner = vm.addr(deployerPrivateKey); + for (uint256 i = 0; i < stakers.length; i++) + assertNotEq(owner, stakers[i], "owner and staker must be different"); //console.log("Signer is %s", owner); }