From 9a7833f62e5562d70b3931b8eb4cf4c0430667cd Mon Sep 17 00:00:00 2001 From: Vlad Bucur Date: Fri, 31 May 2024 21:43:51 +0300 Subject: [PATCH] on chain claim - fix event for first claim --- contracts/on-chain-claim/src/contract.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contracts/on-chain-claim/src/contract.rs b/contracts/on-chain-claim/src/contract.rs index 484f5df4..332f4618 100644 --- a/contracts/on-chain-claim/src/contract.rs +++ b/contracts/on-chain-claim/src/contract.rs @@ -41,7 +41,8 @@ pub trait OnChainClaimContract: let address_info_mapper = self.address_info(&caller); if address_info_mapper.is_empty() { let address_info = AddressInfo::new_with_epoch(current_epoch); - self.address_info(&caller).set(address_info); + self.address_info(&caller).set(&address_info); + self.new_claim_event(&caller, &address_info); return; }