From 334f5f7f3eefd16ea046769bc7bf143be26671a4 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:43:30 +1000 Subject: [PATCH] fix --- cmd/soroban-cli/src/commands/keys/fund.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cmd/soroban-cli/src/commands/keys/fund.rs b/cmd/soroban-cli/src/commands/keys/fund.rs index 38db755f6..2419c4be2 100644 --- a/cmd/soroban-cli/src/commands/keys/fund.rs +++ b/cmd/soroban-cli/src/commands/keys/fund.rs @@ -26,13 +26,11 @@ impl Cmd { pub async fn run(&self, global_args: &global::Args) -> Result<(), Error> { let print = Print::new(global_args.quiet); let addr = self.address.public_key()?; - self.network - .get(&self.address.locator)? - .fund_address(&addr) - .await?; + let network = self.network.get(&self.address.locator)?; + network.fund_address(&addr).await?; print.checkln(format!( "Account {:?} funded on {:?}", - self.address.name, self.network.network_passphrase + self.address.name, network.network_passphrase )); Ok(()) }