Skip to content

Commit

Permalink
test: add sanity test for local txs args (paradigmxyz#11620)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored and reymom committed Oct 15, 2024
1 parent 783584b commit 7ed900b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/node/core/src/args/txpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,15 @@ mod tests {
let args = CommandParser::<TxPoolArgs>::parse_from(["reth"]).args;
assert_eq!(args, default_args);
}

#[test]
fn txpool_parse_locals() {
let args = CommandParser::<TxPoolArgs>::parse_from([
"reth",
"--txpool.locals",
"0x0000000000000000000000000000000000000000",
])
.args;
assert_eq!(args.locals, vec![Address::ZERO]);
}
}

0 comments on commit 7ed900b

Please sign in to comment.