Skip to content

Commit

Permalink
fix: increase the size limit value to 128 (#3075)
Browse files Browse the repository at this point in the history
* fix: increase the size limit value to 128 to avoid exceeding the limit while link identity

* fix: updated bc-worker too

---------

Co-authored-by: higherordertech <higherordertech>
  • Loading branch information
higherordertech committed Sep 19, 2024
1 parent ac42ede commit 70e0977
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bitacross-worker/litentry/primitives/src/validation_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ use codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
use sp_runtime::{traits::ConstU32, BoundedVec};

pub type ValidationString = BoundedVec<u8, ConstU32<64>>;
// The size limit value should be 128 otherwise the message size will exceed the limit while link identity.
pub type ValidationString = BoundedVec<u8, ConstU32<128>>;

#[derive(Encode, Decode, Clone, Debug, PartialEq, Eq, TypeInfo, MaxEncodedLen)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
Expand Down
3 changes: 2 additions & 1 deletion tee-worker/litentry/primitives/src/validation_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ use codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;
use sp_runtime::{traits::ConstU32, BoundedVec};

pub type ValidationString = BoundedVec<u8, ConstU32<64>>;
// The size limit value should be 128 otherwise the message size will exceed the limit while link identity.
pub type ValidationString = BoundedVec<u8, ConstU32<128>>;

#[derive(Encode, Decode, Clone, Debug, PartialEq, Eq, TypeInfo, MaxEncodedLen)]
#[cfg_attr(feature = "std", derive(Serialize, Deserialize))]
Expand Down

0 comments on commit 70e0977

Please sign in to comment.