Skip to content

Commit

Permalink
print error
Browse files Browse the repository at this point in the history
  • Loading branch information
zo-el committed Aug 6, 2024
1 parent 8ef139c commit d40262c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions crates/holofuel_cli/src/actions/pending.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,22 @@ use hpos_hc_connect::{
pub async fn get() -> Result<()> {
let mut agent = HfAgent::spawn(None).await?;

let txs: Pending = agent
let txs: Pending = match agent
.app
.zome_call_typed(
CoreAppRoleName::Holofuel.into(),
ZomeName::from("transactor"),
FunctionName::from("get_pending_transactions"),
(),
)
.await?;
.await
{
Ok(txs) => txs,
Err(e) => {
println!("Error: {:?}", e);
return Ok(());
}
};

println!("===================");
println!("Your Pending List is: ");
Expand Down

0 comments on commit d40262c

Please sign in to comment.