Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cluster connection test fix #416

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contracts/evm/test/adapters/ClusterConnection.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ contract ClusterConnectionTest is Test {
}

function testSetAdmin() public {
vm.prank(source_relayer);
vm.prank(owner);
adapterSource.setAdmin(user);
assertEq(adapterSource.admin(), user);
}

function testSetAdminUnauthorized() public {
vm.prank(user);
vm.expectRevert("OnlyRelayer");
vm.expectRevert("OnlyAdmin");
adapterSource.setAdmin(user);
}

Expand Down Expand Up @@ -328,10 +328,10 @@ contract ClusterConnectionTest is Test {
adapterTarget.updateValidators(validators, 2);
vm.stopPrank();
vm.startPrank(destination_relayer);
vm.expectRevert("Not enough valid signatures passed");
bytes[] memory signatures = new bytes[](2) ;
signatures[0] = signMessage(pk,hash);
signatures[1] = signMessage(pk,hash);
vm.expectRevert("Not enough valid signatures passed");
adapterTarget.recvMessageWithSignatures(
nidSource,
1,
Expand Down
Loading