Skip to content

Commit 4fb49ca

Browse files
committed
deploy create2 from different user
1 parent 93b2e20 commit 4fb49ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/factory/MagicDropCloneFactoryTest.t.sol

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,15 @@ contract MagicDropCloneFactoryTest is Test {
192192
uint32 implId = registry.registerImplementation(standard, address(impl), false, 0.01 ether, 0.00001 ether);
193193
vm.stopPrank();
194194

195+
// give user some ether
196+
vm.deal(user, 100 ether);
197+
198+
vm.startPrank(user);
195199
vm.expectRevert(MagicDropCloneFactory.InitializationFailed.selector);
196200
factory.createContractDeterministic{value: 0.01 ether}(
197201
"TestNFT", "TNFT", standard, payable(user), implId, bytes32(uint256(102))
198202
);
203+
vm.stopPrank();
199204
}
200205

201206
function testInsufficientDeploymentFee() public {

0 commit comments

Comments
 (0)