Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Relax BoundedVec trait restrictions (paritytech#8749)
Browse files Browse the repository at this point in the history
* requiring users to maintain an unchecked invariant is unsafe

* relax trait restrictions on BoundedVec<T, S>

A normal `Vec<T>` can do many things without any particular trait
bounds on `T`. This commit relaxes the bounds on `BoundedVec<T, S>`
to give it similar capabilities.
  • Loading branch information
coriolinus authored and nazar-pc committed Aug 8, 2021
1 parent 777ca19 commit 6e13c69
Show file tree
Hide file tree
Showing 6 changed files with 149 additions and 108 deletions.
2 changes: 1 addition & 1 deletion frame/support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,7 @@ pub mod pallet_prelude {
dispatch::{DispatchResultWithPostInfo, Parameter, DispatchError, DispatchResult},
weights::{DispatchClass, Pays, Weight},
storage::types::{StorageValue, StorageMap, StorageDoubleMap, ValueQuery, OptionQuery},
storage::bounded_vec::{BoundedVec, BoundedVecValue},
storage::bounded_vec::BoundedVec,
};
pub use codec::{Encode, Decode};
pub use crate::inherent::{InherentData, InherentIdentifier, ProvideInherent};
Expand Down
Loading

0 comments on commit 6e13c69

Please sign in to comment.