Skip to content

Commit

Permalink
fix: remove lottery public
Browse files Browse the repository at this point in the history
  • Loading branch information
mx819812523 committed Nov 28, 2024
1 parent 8aaa5df commit 2b21ce9
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 2b21ce9

Please sign in to comment.