From ec629308d6bd59d20503de0bb921c644bc452b5e Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 6 Aug 2024 01:14:29 -0400 Subject: [PATCH] Update a few comments in the validator-sets pallet --- substrate/validator-sets/pallet/src/lib.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/substrate/validator-sets/pallet/src/lib.rs b/substrate/validator-sets/pallet/src/lib.rs index f2f76544..273dc489 100644 --- a/substrate/validator-sets/pallet/src/lib.rs +++ b/substrate/validator-sets/pallet/src/lib.rs @@ -1016,12 +1016,9 @@ pub mod pallet { #[pallet::weight(0)] // TODO pub fn allocate(origin: OriginFor, network: NetworkId, amount: Amount) -> DispatchResult { let validator = ensure_signed(origin)?; - // If this network utilizes an embedded elliptic curve, require the validator to have set the - // appropriate key + // If this network utilizes embedded elliptic curve(s), require the validator to have set the + // appropriate key(s) for embedded_elliptic_curve in network.embedded_elliptic_curves() { - // Require an Embedwards25519 embedded curve key and a key for the curve for this network - // The Embedwards25519 embedded curve key is required for the DKG for the Substrate key - // used to oraclize events with if !EmbeddedEllipticCurveKeys::::contains_key(validator, *embedded_elliptic_curve) { Err(Error::::MissingEmbeddedEllipticCurveKey)?; }