Skip to content
Snippets Groups Projects

Upgrade polkadot v1.18.0

Merged Benjamin Gallois requested to merge upgrade-polkadot-v1.18.0 into master
7 files
+ 20
15
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -16,7 +16,7 @@
@@ -16,7 +16,7 @@
//! Various basic types for use in the identity pallet.
//! Various basic types for use in the identity pallet.
use codec::{Decode, Encode};
use codec::{Decode, DecodeWithMemTracking, Encode};
use frame_support::pallet_prelude::*;
use frame_support::pallet_prelude::*;
use scale_info::{prelude::vec::Vec, TypeInfo};
use scale_info::{prelude::vec::Vec, TypeInfo};
use serde::{Deserialize, Serialize};
use serde::{Deserialize, Serialize};
@@ -45,7 +45,7 @@ pub enum IdtyEvent<T: crate::Config> {
@@ -45,7 +45,7 @@ pub enum IdtyEvent<T: crate::Config> {
}
}
/// Reasons for revocation.
/// Reasons for revocation.
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo)]
#[derive(Encode, Decode, DecodeWithMemTracking, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo)]
pub enum RevocationReason {
pub enum RevocationReason {
/// Revoked by root (e.g., governance or migration).
/// Revoked by root (e.g., governance or migration).
Root,
Root,
@@ -56,7 +56,7 @@ pub enum RevocationReason {
@@ -56,7 +56,7 @@ pub enum RevocationReason {
}
}
/// Reasons for removal.
/// Reasons for removal.
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo)]
#[derive(Encode, Decode, Clone, DecodeWithMemTracking, PartialEq, Eq, RuntimeDebug, TypeInfo)]
pub enum RemovalReason {
pub enum RemovalReason {
/// Removed by root.
/// Removed by root.
Root,
Root,
@@ -72,6 +72,7 @@ pub enum RemovalReason {
@@ -72,6 +72,7 @@ pub enum RemovalReason {
#[derive(
#[derive(
Encode,
Encode,
Decode,
Decode,
 
DecodeWithMemTracking,
Default,
Default,
Clone,
Clone,
PartialEq,
PartialEq,
Loading