Skip to content

Commit

Permalink
Increase credential bounded vec size (#437)
Browse files Browse the repository at this point in the history
## What?

## Why?

## How?

## Testing?

## Screenshots (optional)

## Anything Else?
  • Loading branch information
JuaniRios authored Jan 16, 2025
1 parent 539a814 commit ad6d1f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion polimec-common/common/src/credentials/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub struct SampleClaims<AccountId> {
pub did: Did,
}

pub type Did = BoundedVec<u8, ConstU32<57>>;
pub type Did = BoundedVec<u8, ConstU32<64>>;
pub type Cid = BoundedVec<u8, ConstU32<96>>;

pub struct EnsureInvestor<T>(sp_std::marker::PhantomData<T>);
Expand Down
6 changes: 3 additions & 3 deletions polimec-common/test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ mod jwt_utils {
fn create_jwt<AccountId: frame_support::Serialize>(
account_id: AccountId,
investor_type: InvestorType,
did: BoundedVec<u8, ConstU32<57>>,
did: Did,
ipfs_cid: Option<BoundedVec<u8, ConstU32<96>>>,
) -> UntrustedToken {
use chrono::{TimeZone, Utc};
Expand Down Expand Up @@ -96,7 +96,7 @@ mod jwt_utils {
pub fn get_mock_jwt<AccountId: frame_support::Serialize>(
account_id: AccountId,
investor_type: InvestorType,
did: BoundedVec<u8, ConstU32<57>>,
did: Did,
) -> UntrustedToken {
create_jwt(account_id, investor_type, did, None)
}
Expand All @@ -105,7 +105,7 @@ mod jwt_utils {
pub fn get_mock_jwt_with_cid<AccountId: frame_support::Serialize>(
account_id: AccountId,
investor_type: InvestorType,
did: BoundedVec<u8, ConstU32<57>>,
did: Did,
ipfs_cid: BoundedVec<u8, ConstU32<96>>,
) -> UntrustedToken {
create_jwt(account_id, investor_type, did, Some(ipfs_cid))
Expand Down

0 comments on commit ad6d1f4

Please sign in to comment.