Skip to content
Snippets Groups Projects
Commit 2b90e624 authored by Hugo Trentesaux's avatar Hugo Trentesaux Committed by Hugo Trentesaux
Browse files

fix oneshot event

parent 83f6df47
Branches
Tags
1 merge request!7Big refacto
......@@ -62,7 +62,7 @@ pub async fn consume_oneshot_account(
let events = track_progress(progress).await?;
if let Some(e) =
events.find_first::<runtime::oneshot_account::events::OneshotAccountCreated>()?
events.find_first::<runtime::oneshot_account::events::OneshotAccountConsumed>()?
{
println!("{e:?}");
}
......@@ -128,8 +128,9 @@ pub async fn oneshot_account_balance(
client: &Client,
account: AccountId32,
) -> Result<(), anyhow::Error> {
log::info!(
"{}",
println!(
"balance of oneshot account {} is: {}",
&account,
client
.storage()
.fetch(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment