@@ -22,6 +22,7 @@ use events::CancelMintRequest;
2222use near_contract_standards:: non_fungible_token:: metadata:: {
2323 NFTContractMetadata , NonFungibleTokenMetadataProvider , TokenMetadata , NFT_METADATA_SPEC ,
2424} ;
25+ use near_contract_standards:: non_fungible_token:: events:: NftMint ;
2526use near_contract_standards:: non_fungible_token:: NonFungibleToken ;
2627use near_contract_standards:: non_fungible_token:: { Token , TokenId } ;
2728use near_contract_tools:: standard:: nep297:: Event ;
@@ -228,7 +229,7 @@ impl Contract {
228229 token_id. clone ( ) ,
229230 receiver_id. clone ( ) ,
230231 Some ( token_metadata. clone ( ) ) ,
231- Some ( receiver_id) ,
232+ Some ( receiver_id. clone ( ) ) ,
232233 ) ;
233234
234235 // Calculate refund amount
@@ -248,7 +249,12 @@ impl Contract {
248249 // Update request status and refund amount
249250 request. claimable_deposit = refund_amount;
250251 self . tweet_requests . insert ( & token. token_id , & request) ;
251- self . claim_funds ( token_id, request, MintRequestStatus :: IsFulfilled ) ;
252+ self . claim_funds ( token_id. clone ( ) , request, MintRequestStatus :: IsFulfilled ) ;
253+ NftMint {
254+ owner_id : & receiver_id,
255+ token_ids : & [ & token_id] ,
256+ memo : None ,
257+ } . emit ( ) ;
252258 return token;
253259 } else {
254260 // penalize user by decreasing Claimable Balance
0 commit comments