File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
mithril-aggregator/src/artifact_builder
mithril-common/src/signable_builder Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ impl DummyArtifact {
22
22
}
23
23
}
24
24
25
+ #[ typetag:: serde]
25
26
impl Artifact for DummyArtifact { }
26
27
27
28
/// A [DummyArtifact] builder
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ impl MithrilStakeDistribution {
24
24
}
25
25
}
26
26
27
+ #[ typetag:: serde]
27
28
impl Artifact for MithrilStakeDistribution { }
28
29
29
30
/// A [MithrilStakeDistributionArtifact] builder
Original file line number Diff line number Diff line change 1
1
use async_trait:: async_trait;
2
- use serde:: { de:: DeserializeOwned , Serialize } ;
3
2
use std:: fmt:: Debug ;
4
3
5
4
use crate :: { entities:: ProtocolMessage , StdResult } ;
@@ -14,7 +13,8 @@ pub trait Signable: Send + Sync {
14
13
}
15
14
16
15
/// Artifact is a trait for types that represent signed artifacts
17
- pub trait Artifact : Serialize + DeserializeOwned + PartialEq + Debug + Send + Sync { }
16
+ #[ typetag:: serde( tag = "type" ) ]
17
+ pub trait Artifact : Debug + Send + Sync { }
18
18
19
19
/// SignableBuilder is trait for building a signable for a beacon
20
20
#[ async_trait]
You can’t perform that action at this time.
0 commit comments