Skip to content

Commit e5b5fc4

Browse files
committed
More test
1 parent d625f79 commit e5b5fc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/deployer/Deployer.t.sol

+5
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,16 @@ contract DeployerTest is Test {
6666

6767
function testDeploy() public {
6868
deployer.authorize(address(this), true);
69+
deployer.setFeeCollector(auth);
70+
assertEq(deployer.nonce(), 0);
6971
address predicted = deployer.deployment(1);
7072
vm.expectEmit(true, true, false, false);
7173
emit Deployed(1, predicted);
7274
(uint64 nonce, address instance) = deployer.deploy(type(Dummy).creationCode);
7375
assertEq(nonce, 1);
7476
assertEq(instance, predicted);
77+
assertEq(deployer.nonce(), 1);
78+
assertEq(deployer.deployment(), predicted);
79+
assertEq(Dummy(instance).feeCollector(), auth);
7580
}
7681
}

0 commit comments

Comments
 (0)