From 2b90e624faa41a44bdacefbe70e79b17cfa17111 Mon Sep 17 00:00:00 2001
From: Hugo Trentesaux <hugo@trentesaux.fr>
Date: Wed, 7 Jun 2023 13:05:31 +0200
Subject: [PATCH] fix oneshot event

---
 src/commands/oneshot.rs | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/commands/oneshot.rs b/src/commands/oneshot.rs
index 8b56aff..3ee2c67 100644
--- a/src/commands/oneshot.rs
+++ b/src/commands/oneshot.rs
@@ -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(
-- 
GitLab