Skip to content

Commit

Permalink
allowing larger constant for legacy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ziaptos authored and sherry-x committed Dec 2, 2024
1 parent c522181 commit 629850d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/types/src/move_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,12 @@ pub enum MoveType {

/// Maximum number of recursive types - Same as (non-public)
/// move_core_types::safe_serialize::MAX_TYPE_TAG_NESTING
pub const MAX_RECURSIVE_TYPES_ALLOWED: u8 = 8;
/// We keep 16 for legacy tests
pub const MAX_RECURSIVE_TYPES_ALLOWED: u8 = if cfg!(test) {
16
} else {
8 // = move_core_types::safe_serialize::MAX_TYPE_TAG_NESTING
};

impl VerifyInputWithRecursion for MoveType {
fn verify(&self, recursion_count: u8) -> anyhow::Result<()> {
Expand Down

0 comments on commit 629850d

Please sign in to comment.