Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
0b0c41b5
Commit
0b0c41b5
authored
3 years ago
by
Cheng JIANG
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add TypeInfo trait bound (#10031)
parent
5d34c245
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/assets/src/lib.rs
+5
-2
5 additions, 2 deletions
substrate/frame/assets/src/lib.rs
with
5 additions
and
2 deletions
substrate/frame/assets/src/lib.rs
+
5
−
2
View file @
0b0c41b5
...
...
@@ -170,6 +170,7 @@ pub mod pallet {
use
super
::
*
;
use
frame_support
::{
dispatch
::
DispatchResult
,
pallet_prelude
::
*
};
use
frame_system
::
pallet_prelude
::
*
;
use
scale_info
::
TypeInfo
;
#[pallet::pallet]
#[pallet::generate_store(pub(super)
trait
Store)]
...
...
@@ -189,7 +190,8 @@ pub mod pallet {
+
Default
+
Copy
+
MaybeSerializeDeserialize
+
MaxEncodedLen
;
+
MaxEncodedLen
+
TypeInfo
;
/// Identifier for the class of asset.
type
AssetId
:
Member
...
...
@@ -198,7 +200,8 @@ pub mod pallet {
+
Copy
+
HasCompact
+
MaybeSerializeDeserialize
+
MaxEncodedLen
;
+
MaxEncodedLen
+
TypeInfo
;
/// The currency mechanism.
type
Currency
:
ReservableCurrency
<
Self
::
AccountId
>
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment