diff --git a/test/factory/MultiOwnerMSCAFactoryTest.t.sol b/test/factory/MultiOwnerMSCAFactoryTest.t.sol index 6b4e2101b..67be8a50e 100644 --- a/test/factory/MultiOwnerMSCAFactoryTest.t.sol +++ b/test/factory/MultiOwnerMSCAFactoryTest.t.sol @@ -130,6 +130,15 @@ contract MultiOwnerMSCAFactoryTest is Test { assertEq(address(factory).balance, 0); } + function test_2StepOwnershipTransfer() public { + assertEq(factory.owner(), address(this)); + factory.transferOwnership(owner1); + assertEq(factory.owner(), address(this)); + vm.prank(owner1); + factory.acceptOwnership(); + assertEq(factory.owner(), owner1); + } + // to receive funds from withdraw receive() external payable {} } diff --git a/test/factory/MultiOwnerTokenReceiverFactoryTest.t.sol b/test/factory/MultiOwnerTokenReceiverFactoryTest.t.sol index 3d5116ff2..a42c43430 100644 --- a/test/factory/MultiOwnerTokenReceiverFactoryTest.t.sol +++ b/test/factory/MultiOwnerTokenReceiverFactoryTest.t.sol @@ -186,6 +186,15 @@ contract MultiOwnerTokenReceiverMSCAFactoryTest is Test { assertEq(address(factory).balance, 0); } + function test_2StepOwnershipTransfer() public { + assertEq(factory.owner(), address(this)); + factory.transferOwnership(owner1); + assertEq(factory.owner(), address(this)); + vm.prank(owner1); + factory.acceptOwnership(); + assertEq(factory.owner(), owner1); + } + // to receive funds from withdraw receive() external payable {} }