Skip to content

Commit

Permalink
Update a few comments in the validator-sets pallet
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Aug 6, 2024
1 parent f27fb9b commit ec62930
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions substrate/validator-sets/pallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1016,12 +1016,9 @@ pub mod pallet {
#[pallet::weight(0)] // TODO
pub fn allocate(origin: OriginFor<T>, 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::<T>::contains_key(validator, *embedded_elliptic_curve) {
Err(Error::<T>::MissingEmbeddedEllipticCurveKey)?;
}
Expand Down

0 comments on commit ec62930

Please sign in to comment.