Skip to content

Commit

Permalink
Update meet.move
Browse files Browse the repository at this point in the history
  • Loading branch information
lnfin authored Jul 7, 2023
1 parent 8076b72 commit f09055b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sui/sources/meet.move
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ module sui_meet::meet

// CONSTS

const MAX_MESSAGE_LEN: u64 = 2000;
const MAX_MESSAGE_LEN: u64 = 5000;
const MAX_FILES_AMOUNT: u64 = 10;
const MAX_COMMENTS_AMOUNT: u64 = 300;
const MAX_COMMENTS_AMOUNT: u64 = 1000;

// ERRORS

Expand Down Expand Up @@ -257,9 +257,7 @@ module sui_meet::meet
ctx: &mut TxContext
) {
let text_len = vector::length(&text);
let files_amount = vector::length(&text);
assert!(text_len > 0 && text_len <= MAX_MESSAGE_LEN, E_INVALID_TEXT_LENGTH);
assert!(files_amount > 0 && files_amount <= MAX_FILES_AMOUNT, E_INVALID_AMOUNT_FILES);

let profile_addr = object::id_to_address(&object::id(profile));

Expand Down

0 comments on commit f09055b

Please sign in to comment.