Skip to content

Commit

Permalink
pr review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
howydev committed Dec 21, 2023
1 parent 88fc999 commit ec21a90
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/factory/MultiOwnerMSCAFactoryTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}
9 changes: 9 additions & 0 deletions test/factory/MultiOwnerTokenReceiverFactoryTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}

0 comments on commit ec21a90

Please sign in to comment.