Skip to content

Commit

Permalink
esdt-safe: Update create_transaction_event
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Mar 14, 2024
1 parent 550f274 commit 3f0776e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion esdt-safe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -246,6 +246,8 @@ pub trait EsdtSafe:
payment_token,
actual_bridged_amount,
required_fee,
tx.to,
tx.from
);
}

Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit 3f0776e

Please sign in to comment.