From ec21a90d2cdab321a09787b1ec637d372d68dd49 Mon Sep 17 00:00:00 2001 From: howydev <132113803+howydev@users.noreply.github.com> Date: Thu, 21 Dec 2023 17:40:07 -0500 Subject: [PATCH] pr review fix --- test/factory/MultiOwnerMSCAFactoryTest.t.sol | 9 +++++++++ test/factory/MultiOwnerTokenReceiverFactoryTest.t.sol | 9 +++++++++ 2 files changed, 18 insertions(+) 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 {} }