From 3f0776ea06848c333b88ec6dc8c335c0369d926a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Thu, 14 Mar 2024 15:05:03 +0200 Subject: [PATCH] esdt-safe: Update create_transaction_event --- esdt-safe/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/esdt-safe/src/lib.rs b/esdt-safe/src/lib.rs index 5d32b97a..25f6d9a7 100644 --- a/esdt-safe/src/lib.rs +++ b/esdt-safe/src/lib.rs @@ -219,7 +219,7 @@ pub trait EsdtSafe: is_refund_tx: false, }; - let batch_id = self.add_to_batch(tx); + let batch_id = self.add_to_batch(tx.clone()); if !self.mint_burn_token(&payment_token).get() { self.total_balances(&payment_token).update(|total| { *total += &actual_bridged_amount; @@ -246,6 +246,8 @@ pub trait EsdtSafe: payment_token, actual_bridged_amount, required_fee, + tx.to, + tx.from ); } @@ -327,6 +329,8 @@ pub trait EsdtSafe: #[indexed] token_id: TokenIdentifier, #[indexed] amount: BigUint, #[indexed] fee: BigUint, + #[indexed] sender: ManagedBuffer, + #[indexed] recipient: ManagedBuffer, ); #[event("addRefundTransactionEvent")]