Add initial basic tests for serai-client-serai

This commit is contained in:
Luke Parker
2025-11-06 20:12:37 -05:00
parent 1866bb7ae3
commit ce08fad931
7 changed files with 147 additions and 26 deletions

View File

@@ -286,6 +286,13 @@ mod substrate {
header: SubstrateHeader,
transactions: Vec<Transaction>,
}
impl From<SubstrateBlock> for Block {
fn from(block: SubstrateBlock) -> Self {
Self { header: (&block.header).into(), transactions: block.transactions }
}
}
impl sp_core::serde::Serialize for SubstrateBlock {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where