From 7ed900be55219cefc7110e356d46753745b7ff07 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 9 Oct 2024 21:41:50 +0200 Subject: [PATCH] test: add sanity test for local txs args (#11620) --- crates/node/core/src/args/txpool.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/crates/node/core/src/args/txpool.rs b/crates/node/core/src/args/txpool.rs index 98e125ab9f394..63f6c566ca2bc 100644 --- a/crates/node/core/src/args/txpool.rs +++ b/crates/node/core/src/args/txpool.rs @@ -170,4 +170,15 @@ mod tests { let args = CommandParser::::parse_from(["reth"]).args; assert_eq!(args, default_args); } + + #[test] + fn txpool_parse_locals() { + let args = CommandParser::::parse_from([ + "reth", + "--txpool.locals", + "0x0000000000000000000000000000000000000000", + ]) + .args; + assert_eq!(args.locals, vec![Address::ZERO]); + } }