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
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,7 @@ pub async fn consume_oneshot_account( ...@@ -62,7 +62,7 @@ pub async fn consume_oneshot_account(
let events = track_progress(progress).await?; let events = track_progress(progress).await?;
if let Some(e) = if let Some(e) =
events.find_first::<runtime::oneshot_account::events::OneshotAccountCreated>()? events.find_first::<runtime::oneshot_account::events::OneshotAccountConsumed>()?
{ {
println!("{e:?}"); println!("{e:?}");
} }
...@@ -128,8 +128,9 @@ pub async fn oneshot_account_balance( ...@@ -128,8 +128,9 @@ pub async fn oneshot_account_balance(
client: &Client, client: &Client,
account: AccountId32, account: AccountId32,
) -> Result<(), anyhow::Error> { ) -> Result<(), anyhow::Error> {
log::info!( println!(
"{}", "balance of oneshot account {} is: {}",
&account,
client client
.storage() .storage()
.fetch( .fetch(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment