Skip to content

Commit 9420cf3

Browse files
committed
Bug! Fix indexed event argument checking
1 parent 59dbdc9 commit 9420cf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/deployer/Deployer.t.sol

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ contract DeployerTest is Test {
8282

8383
function testFeeCollector() public {
8484
assertEq(deployer.feeCollector(1), address(0));
85-
vm.expectEmit(true, false, false, false, address(deployer));
85+
vm.expectEmit(true, true, false, false, address(deployer));
8686
emit FeeCollectorChanged(1, address(this));
8787
assertTrue(deployer.setFeeCollector(1, address(this)));
8888
assertEq(deployer.feeCollector(1), address(this));
@@ -102,7 +102,7 @@ contract DeployerTest is Test {
102102
deployer.authorize(1, address(this), uint96(block.timestamp + 1 days));
103103
deployer.setFeeCollector(1, auth);
104104
address predicted = AddressDerivation.deriveContract(address(deployer), 1);
105-
vm.expectEmit(true, true, false, false, address(deployer));
105+
vm.expectEmit(true, true, true, false, address(deployer));
106106
emit Deployed(1, 1, predicted);
107107
vm.expectEmit(true, true, true, false, address(deployer));
108108
emit Transfer(address(0), predicted, 1);
@@ -174,7 +174,7 @@ contract DeployerTest is Test {
174174

175175
vm.expectEmit(true, true, true, false, address(deployer));
176176
emit Transfer(AddressDerivation.deriveContract(address(deployer), 1), address(0), 1);
177-
vm.expectEmit(true, true, false, false, address(deployer));
177+
vm.expectEmit(true, true, true, false, address(deployer));
178178
emit Unsafe(1, 1, instance);
179179
assertTrue(deployer.setUnsafe(1, nonce));
180180
vm.expectRevert(abi.encodeWithSignature("NoToken(uint256)", 1));

0 commit comments

Comments
 (0)