Skip to content

Commit

Permalink
fix: remove use of deprecated function uint::max_value
Browse files Browse the repository at this point in the history
  • Loading branch information
david weil committed Jul 18, 2024
1 parent bc7ccf4 commit 5e38ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mod tests {
let client = AvoidPanicErrorClient::new(&env, &contract_id);

// When
let _max_value = client.try_add(&u32::max_value());
let _max_value = client.try_add(&u32::MAX);
let overflow = client.try_add(&1);

// Then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ mod tests {
let client = AvoidPanicErrorClient::new(&env, &contract_id);

// When
client.add(&u32::max_value());
client.add(&u32::MAX);
client.add(&1);

// Then
Expand Down

0 comments on commit 5e38ce6

Please sign in to comment.