Skip to content

Commit

Permalink
test: add back isOwnerPublicKey coverage after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pegahcarter committed Mar 5, 2024
1 parent 9fe10ee commit 64de511
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/MultiOwnable/AddOwnerPublicKey.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ contract AddOwnerPublicKeyTest is AddOwnerBaseTest {
mock.addOwnerPublicKey(x, y);
}

function testFuzzIsOwnerPublicKey(bytes32 x, bytes32 y) external {
vm.assume(x > 0 && y > 0);
vm.startPrank(owner1Address);
mock.addOwnerPublicKey(x, y);
bytes memory xy = abi.encode(x, y);
assert(mock.isOwnerBytes(xy));
assert(mock.isOwnerPublicKey(x, y));
}

function _index() internal view override returns (uint256) {
return mock.nextOwnerIndex();
}
Expand Down

0 comments on commit 64de511

Please sign in to comment.