From 4ff88b7ea11dd3c847bb711b80258517148e1529 Mon Sep 17 00:00:00 2001 From: Leigh <351529+leighmcculloch@users.noreply.github.com> Date: Mon, 15 Sep 2025 18:50:51 -0300 Subject: [PATCH] handle contract and account address types in snapshot creation --- cmd/soroban-cli/src/commands/snapshot/create.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/soroban-cli/src/commands/snapshot/create.rs b/cmd/soroban-cli/src/commands/snapshot/create.rs index 1434fe2ace..49a5094081 100644 --- a/cmd/soroban-cli/src/commands/snapshot/create.rs +++ b/cmd/soroban-cli/src/commands/snapshot/create.rs @@ -421,7 +421,11 @@ impl Cmd { network_passphrase: &str, ) -> Option> { if let Some(contract) = self.resolve_contract(address, network_passphrase) { - Some(Either::Right(contract)) + match contract { + ScAddress::Contract(_) => Some(Either::Right(contract)), + ScAddress::Account(a) => Some(Either::Left(a)), + _ => panic!("address type unsupported") + } } else { self.resolve_account_sync(address).map(Either::Left) }