From d17e55f84bbac049b933f43208dd8f1fdf3504f6 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Thu, 29 Sep 2022 10:33:52 +0200 Subject: [PATCH] Add force_batch to supported DID calls --- runtimes/peregrine/src/lib.rs | 1 + runtimes/spiritnet/src/lib.rs | 1 + runtimes/standalone/src/lib.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/runtimes/peregrine/src/lib.rs b/runtimes/peregrine/src/lib.rs index 5f455173ed..9c84ca88b0 100644 --- a/runtimes/peregrine/src/lib.rs +++ b/runtimes/peregrine/src/lib.rs @@ -964,6 +964,7 @@ impl did::DeriveDidCallAuthorizationVerificationKeyRelationship for Call { Call::DidLookup { .. } => Ok(did::DidVerificationKeyRelationship::Authentication), Call::Utility(pallet_utility::Call::batch { calls }) => single_key_relationship(&calls[..]), Call::Utility(pallet_utility::Call::batch_all { calls }) => single_key_relationship(&calls[..]), + Call::Utility(pallet_utility::Call::force_batch { calls }) => single_key_relationship(&calls[..]), #[cfg(not(feature = "runtime-benchmarks"))] _ => Err(did::RelationshipDeriveError::NotCallableByDid), // By default, returns the authentication key diff --git a/runtimes/spiritnet/src/lib.rs b/runtimes/spiritnet/src/lib.rs index 102652f4fc..8f322e10d9 100644 --- a/runtimes/spiritnet/src/lib.rs +++ b/runtimes/spiritnet/src/lib.rs @@ -958,6 +958,7 @@ impl did::DeriveDidCallAuthorizationVerificationKeyRelationship for Call { Call::DidLookup { .. } => Ok(did::DidVerificationKeyRelationship::Authentication), Call::Utility(pallet_utility::Call::batch { calls }) => single_key_relationship(&calls[..]), Call::Utility(pallet_utility::Call::batch_all { calls }) => single_key_relationship(&calls[..]), + Call::Utility(pallet_utility::Call::force_batch { calls }) => single_key_relationship(&calls[..]), #[cfg(not(feature = "runtime-benchmarks"))] _ => Err(did::RelationshipDeriveError::NotCallableByDid), // By default, returns the authentication key diff --git a/runtimes/standalone/src/lib.rs b/runtimes/standalone/src/lib.rs index aa97b67695..da470db377 100644 --- a/runtimes/standalone/src/lib.rs +++ b/runtimes/standalone/src/lib.rs @@ -688,6 +688,7 @@ impl did::DeriveDidCallAuthorizationVerificationKeyRelationship for Call { Call::DidLookup { .. } => Ok(did::DidVerificationKeyRelationship::Authentication), Call::Utility(pallet_utility::Call::batch { calls }) => single_key_relationship(&calls[..]), Call::Utility(pallet_utility::Call::batch_all { calls }) => single_key_relationship(&calls[..]), + Call::Utility(pallet_utility::Call::force_batch { calls }) => single_key_relationship(&calls[..]), #[cfg(not(feature = "runtime-benchmarks"))] _ => Err(did::RelationshipDeriveError::NotCallableByDid), // By default, returns the authentication key