From 2b21ce95bca38b8746ca83fe1fd90fd7d066c7d8 Mon Sep 17 00:00:00 2001 From: mx819812523 Date: Thu, 28 Nov 2024 16:52:34 +0800 Subject: [PATCH] fix: remove lottery public --- apps/invitation_record/sources/invitation.move | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/invitation_record/sources/invitation.move b/apps/invitation_record/sources/invitation.move index bbbcb7976c..9dadea0d58 100644 --- a/apps/invitation_record/sources/invitation.move +++ b/apps/invitation_record/sources/invitation.move @@ -148,7 +148,7 @@ module invitation_record::invitation { } - public entry fun lottery(invitation_obj: &mut Object, amount: u64){ + entry fun lottery(invitation_obj: &mut Object, amount: u64){ let invitation_conf = object::borrow_mut(invitation_obj); let user_invitation_records = table::borrow_mut(&mut invitation_conf.invitation_records, sender()); assert!(user_invitation_records.remaining_luckey_ticket >= amount, ErrorNoRemainingLuckeyTicket);