From 7abba1cb288556de430ed315266cc4155d8b9047 Mon Sep 17 00:00:00 2001 From: grandizzy Date: Sat, 2 Nov 2024 21:36:29 +0200 Subject: [PATCH] fix(forge debug): dunce canonicalize provided path --- crates/forge/bin/cmd/debug.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/forge/bin/cmd/debug.rs b/crates/forge/bin/cmd/debug.rs index 421478bd5762..80fcf87936f0 100644 --- a/crates/forge/bin/cmd/debug.rs +++ b/crates/forge/bin/cmd/debug.rs @@ -51,8 +51,9 @@ pub struct DebugArgs { impl DebugArgs { pub async fn run(self) -> eyre::Result<()> { + let path = dunce::canonicalize(self.path)?; let script = ScriptArgs { - path: self.path.to_str().expect("Invalid path string.").to_string(), + path: path.to_str().expect("Invalid path string.").to_string(), args: self.args, target_contract: self.target_contract, sig: self.sig,