Skip to content

Commit 33d5eb3

Browse files
authored
test: add sanity test for local txs args (paradigmxyz#11620)
1 parent 076b1a2 commit 33d5eb3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

crates/node/core/src/args/txpool.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,15 @@ mod tests {
170170
let args = CommandParser::<TxPoolArgs>::parse_from(["reth"]).args;
171171
assert_eq!(args, default_args);
172172
}
173+
174+
#[test]
175+
fn txpool_parse_locals() {
176+
let args = CommandParser::<TxPoolArgs>::parse_from([
177+
"reth",
178+
"--txpool.locals",
179+
"0x0000000000000000000000000000000000000000",
180+
])
181+
.args;
182+
assert_eq!(args.locals, vec![Address::ZERO]);
183+
}
173184
}

0 commit comments

Comments
 (0)