Skip to content

Commit

Permalink
feat: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel committed Oct 3, 2024
1 parent 0650d8d commit f562005
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Deploy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ contract DeployTests is Test {
Deploy.deployOptimismReceiver(makeAddr("l1Authority"), makeAddr("executor"))
);

address deployer = address(this);

assertEq(executor.hasRole(executor.SUBMISSION_ROLE(), address(receiver)), false);
assertEq(executor.hasRole(executor.DEFAULT_ADMIN_ROLE(), address(this)), true);

Deploy.setUpExecutorPermissions(address(executor), address(receiver));
Deploy.setUpExecutorPermissions(address(executor), address(receiver), deployer);

assertEq(executor.hasRole(executor.SUBMISSION_ROLE(), address(receiver)), true);
assertEq(executor.hasRole(executor.DEFAULT_ADMIN_ROLE(), address(this)), false);
Expand Down

0 comments on commit f562005

Please sign in to comment.