Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fmt
  • Loading branch information
ntn-x2 committed Aug 6, 2021
commit 0b5e36fabe88e6fd1c47bf1d15e334b8faa2b5ee
4 changes: 3 additions & 1 deletion pallets/did/src/did_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ impl<T: Config> DidDetails<T> {
);

if let DidFragmentUpdateAction::Change(ref service_endpoints) = update_details.service_endpoints_update {
service_endpoints.validate_against_config_limits::<T>().map_err(DidError::InputError)?;
service_endpoints
.validate_against_config_limits::<T>()
.map_err(DidError::InputError)?;
}

let current_block_number = <frame_system::Pallet<T>>::block_number();
Expand Down
5 changes: 3 additions & 2 deletions pallets/did/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@
//! to any past attestation key that has been rotated but not entirely
//! revoked.
//!
//! - An optional **service endpoints description**: pointing to the description of the services
//! the DID subject exposes and storing a cryptographic hash of that information to ensure the integrity of the content.
//! - An optional **service endpoints description**: pointing to the description
//! of the services the DID subject exposes and storing a cryptographic hash
//! of that information to ensure the integrity of the content.
//! For more information, check the W3C DID Core specification.
//!
//! - A **transaction counter**: acts as a nonce to avoid replay or signature
Expand Down