Skip to content

Commit

Permalink
fix: remove lottery public (#2975)
Browse files Browse the repository at this point in the history
  • Loading branch information
mx819812523 authored Nov 28, 2024
1 parent de126c3 commit 90d7135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/invitation_record/sources/invitation.move
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module invitation_record::invitation {

}

public entry fun lottery(invitation_obj: &mut Object<InvitationConf>, amount: u64){
entry fun lottery(invitation_obj: &mut Object<InvitationConf>, 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);
Expand Down

0 comments on commit 90d7135

Please sign in to comment.