Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DIP template runtime
Browse files Browse the repository at this point in the history
ntn-x2 committed Jan 29, 2025
1 parent 3fe401d commit 2483ab0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion dip-template/runtimes/dip-provider/src/lib.rs
Original file line number Diff line number Diff line change
@@ -633,7 +633,9 @@ impl_runtime_apis! {
LinkableAccountId,
Balance,
Hash,
BlockNumber
BlockNumber,
(),
()
> for Runtime {
fn query_by_web3_name(name: Vec<u8>) -> Option<kilt_runtime_api_did::RawDidLinkedInfo<
DidIdentifier,
@@ -755,6 +757,16 @@ impl_runtime_apis! {
>> {
dids.into_iter().map(Self::query).collect()
}

// We don't return anything here, since the runtime does not require the resources to be cleaned up.
fn linked_resources(_did: DidIdentifier) -> Vec<()> {
[].into()
}

// We don't return anything here, since the runtime does not require the resources to be cleaned up.
fn linked_resources_deletion_calls(_did: DidIdentifier) -> Vec<()> {
[].into()
}
}

impl kilt_runtime_api_dip_provider::DipProvider<Block, runtime_api::DipProofRequest, CompleteMerkleProof<Hash, DidMerkleProofOf<Runtime>>, runtime_api::DipProofError> for Runtime {

0 comments on commit 2483ab0

Please sign in to comment.