Skip to content

Commit

Permalink
script: add nonexist create2
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa committed Nov 21, 2024
1 parent a958c24 commit 4f27792
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crates/forge/tests/cli/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,21 @@ forgetest_async!(can_deploy_with_custom_create2, |prj, cmd| {
.await;
});

forgetest_async!(canot_deploy_with_nonexist_create2, |prj, cmd| {
let (_api, handle) = spawn(NodeConfig::test()).await;
let mut tester = ScriptTester::new_broadcast(cmd, &handle.http_endpoint(), prj.root());
let create2 = Address::from_str("0x0000000000000000000000000000000000b4956c").unwrap();

tester
.add_deployer(0)
.load_private_keys(&[0])
.await
.add_create2_deployer(create2)
.add_sig("BroadcastTestNoLinking", "deployCreate2()")
.simulate(ScriptOutcome::ScriptFailed)
.broadcast(ScriptOutcome::ScriptFailed);
});

forgetest_async!(can_deploy_and_simulate_25_txes_concurrently, |prj, cmd| {
let (_api, handle) = spawn(NodeConfig::test()).await;
let mut tester = ScriptTester::new_broadcast(cmd, &handle.http_endpoint(), prj.root());
Expand Down

0 comments on commit 4f27792

Please sign in to comment.