Skip to content

Commit

Permalink
esdt-safe: Add caller for claim_refund_transaction_event
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Mar 14, 2024
1 parent 3f0776e commit efb0b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esdt-safe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub trait EsdtSafe:
self.send()
.direct_esdt(&caller, &token_id, 0, &refund_amount);

self.claim_refund_transaction_event(&token_id);
self.claim_refund_transaction_event(&token_id, caller);
EsdtTokenPayment::new(token_id, 0, refund_amount)
}

Expand Down Expand Up @@ -342,7 +342,7 @@ pub trait EsdtSafe:
);

#[event("claimRefundTransactionEvent")]
fn claim_refund_transaction_event(&self, #[indexed] token_id: &TokenIdentifier);
fn claim_refund_transaction_event(&self, #[indexed] token_id: &TokenIdentifier, #[indexed] caller: ManagedAddress);

#[event("setStatusEvent")]
fn set_status_event(
Expand Down

0 comments on commit efb0b83

Please sign in to comment.