diff --git a/basic_credential/src/lib.rs b/basic_credential/src/lib.rs index 6c48e883f..fe8ea30c2 100644 --- a/basic_credential/src/lib.rs +++ b/basic_credential/src/lib.rs @@ -165,6 +165,12 @@ pub struct StorageId { value: Vec, } +impl From> for StorageId { + fn from(vec: Vec) -> Self { + StorageId { value: vec } + } +} + // Implement key traits for the storage id impl storage::Key for StorageId {} impl storage::traits::SignaturePublicKey for StorageId {}