Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Dec 19, 2024
1 parent a36c101 commit 334f5f7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/soroban-cli/src/commands/keys/fund.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 334f5f7

Please sign in to comment.