Skip to content

Commit

Permalink
[move] Mark sui::math as deprecated (MystenLabs#18849)
Browse files Browse the repository at this point in the history
## Description 

- Adds the `deprecated` annotation to `sui::math`

## Test plan 

- Ran tests

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [X] CLI: The Move module `sui::math` has been deprecated. The
individual integer modules, e.g. `std::u64`, should be used instead.
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
tnowacki authored Jul 29, 2024
1 parent 982024a commit 14f02fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

/// DEPRECATED, use the each integer type's individual module instead, e.g. `std::u64`
#[deprecated(note = b"Use the each integer type's individual module instead, e.g. `std::u64`")]
module sui::math {

/// DEPRECATED, use `std::u64::max` instead
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Mysten Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

#[test_only]
#[test_only, allow(deprecated_usage)]
module sui::math_tests {
use sui::math;

Expand Down

0 comments on commit 14f02fb

Please sign in to comment.