diff --git a/test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol b/test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol index 116875d..526c0e8 100644 --- a/test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol +++ b/test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol @@ -443,7 +443,7 @@ contract ManagedOpenfortAccountTest is OpenfortBaseTest { vm.expectRevert("Cannot register an expired session key"); // Register a session key valid from 10 to 20 at time 30, should fail. ManagedOpenfortAccount(payable(accountAddress)).registerSessionKey(sessionKey, 10, 20, 100, emptyWhitelist); - + vm.prank(openfortAdmin); // Register a session key valid from 10 to 50 at time 30, should work. ManagedOpenfortAccount(payable(accountAddress)).registerSessionKey(sessionKey, 10, 50, 100, emptyWhitelist); diff --git a/test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol b/test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol index aae0155..c469d2d 100644 --- a/test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol +++ b/test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol @@ -539,7 +539,7 @@ contract UpgradeableOpenfortAccountTest is OpenfortBaseTest { vm.expectRevert("Cannot register an expired session key"); // Register a session key valid from 10 to 20 at time 30, should fail. IBaseRecoverableAccount(payable(accountAddress)).registerSessionKey(sessionKey, 10, 20, 100, emptyWhitelist); - + vm.prank(openfortAdmin); // Register a session key valid from 10 to 50 at time 30, should work. IBaseRecoverableAccount(payable(accountAddress)).registerSessionKey(sessionKey, 10, 50, 100, emptyWhitelist);