mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
test: add sanity test for local txs args (#11620)
This commit is contained in:
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user