Skip to content

Commit

Permalink
More test
Browse files Browse the repository at this point in the history
  • Loading branch information
duncancmt committed Oct 4, 2023
1 parent d625f79 commit ec39e33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/deployer/Deployer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ contract DeployerTest is Test {

function testDeploy() public {
deployer.authorize(address(this), true);
assertEq(deployer.nonce(), 0);
address predicted = deployer.deployment(1);
vm.expectEmit(true, true, false, false);
emit Deployed(1, predicted);
(uint64 nonce, address instance) = deployer.deploy(type(Dummy).creationCode);
assertEq(nonce, 1);
assertEq(instance, predicted);
assertEq(deployer.nonce(), 1);
}
}

0 comments on commit ec39e33

Please sign in to comment.