From 1296cb3567968f61bc94d3b2bfbdc2afd0fbd379 Mon Sep 17 00:00:00 2001 From: Mister-Money Date: Thu, 28 May 2026 03:34:15 +0200 Subject: [PATCH] feat: support storage filtering on remote storage action --- src/cli/args.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/cli/args.rs b/src/cli/args.rs index 4025fc9d..ccf5e16f 100644 --- a/src/cli/args.rs +++ b/src/cli/args.rs @@ -1394,7 +1394,7 @@ pub enum RemoteAction { Inspect, /// Get contract storage state as JSON - Storage, + Storage(RemoteStorageArgs), /// Evaluate an expression in the current debug context Evaluate(RemoteEvaluateArgs), @@ -1411,6 +1411,16 @@ pub struct RemoteEvaluateArgs { pub frame_id: Option, } +#[derive(Parser)] +pub struct RemoteStorageArgs { + /// Filter storage output by key pattern (repeatable). Supports: + /// prefix* — match keys starting with prefix + /// re: — match keys by regex + /// exact_key — match key exactly + #[arg(long, value_name = "PATTERN")] + pub storage_filter: Vec, +} + #[derive(Parser)] pub struct AnalyzeArgs { /// Path to the contract WASM file