feat: add helper to create bootstrap addresses (#269)

This commit is contained in:
Santiago Carmuega 2023-07-29 23:15:00 +02:00 committed by GitHub
parent 97adb181b1
commit 5a3246eb3c
5 changed files with 69 additions and 25 deletions

View file

@ -254,6 +254,12 @@ impl<P> Deref for OrderPreservingProperties<P> {
}
}
impl<P> From<Vec<P>> for OrderPreservingProperties<P> {
fn from(value: Vec<P>) -> Self {
OrderPreservingProperties(value)
}
}
impl<'b, C, P> minicbor::decode::Decode<'b, C> for OrderPreservingProperties<P>
where
P: Decode<'b, C>,