mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Add initial basic tests for serai-client-serai
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user