Skip to content

Commit fbf5f34

Browse files
Mr-Leshiystevenj
andauthored
fix(cat-gateway): Fix cardano/assets endpoint. (#2109)
* fix assets endpoint * wip * wip * wip * wip * wip * fix spelling * Update catalyst-gateway/bin/src/service/common/objects/cardano/stake_info.rs Co-authored-by: Steven Johnson <[email protected]> * wip --------- Co-authored-by: Steven Johnson <[email protected]>
1 parent 10ea1fa commit fbf5f34

File tree

5 files changed

+173
-163
lines changed

5 files changed

+173
-163
lines changed

catalyst-gateway/bin/src/db/types/slot.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use scylla::_macro_internal::{
77
SerializeValue, TypeCheckError, WrittenCellProof,
88
};
99

10+
use crate::service::common::types::cardano::slot_no::SlotNo;
11+
1012
/// A `Slot` wrapper that can be stored to and load from a database.\
1113
#[allow(clippy::module_name_repetitions)]
1214
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
@@ -42,6 +44,12 @@ impl From<DbSlot> for BigInt {
4244
}
4345
}
4446

47+
impl From<SlotNo> for DbSlot {
48+
fn from(value: SlotNo) -> Self {
49+
Self(value.into())
50+
}
51+
}
52+
4553
impl SerializeValue for DbSlot {
4654
fn serialize<'b>(
4755
&self, typ: &ColumnType, writer: CellWriter<'b>,

0 commit comments

Comments
 (0)