mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-20 17:46:10 +00:00
Add an INDEX to the Instance trait (#8555)
* Add an index to the Instance trait * Update frame/support/procedural/src/storage/instance_trait.rs
This commit is contained in:
1 parent
1cb3590f49
commit
d8c1a1d12b
5 files changed
+23
-8
No files matched your search
@@ -26,6 +26,8 @@
|
||||
pub trait Instance: 'static {
|
||||
/// Unique module prefix. E.g. "InstanceNMyModule" or "MyModule"
|
||||
const PREFIX: &'static str;
|
||||
/// Unique numerical identifier for an instance.
|
||||
const INDEX: u8;
|
||||
}
|
||||
|
||||
/// An instance of a storage in a pallet.
|
||||
|
||||
Reference in new issue
Block a user