Skip to content

Commit 51a3d80

Browse files
committed
Fix things
1 parent 27762d5 commit 51a3d80

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ethexe/common/src/primitives.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ pub struct SimpleBlockData {
7878
pub header: BlockHeader,
7979
}
8080

81-
#[cfg_attr(feature = "serde", derive(Hash, serde::Serialize))]
81+
#[cfg_attr(feature = "serde", derive(Hash, serde::Serialize, serde::Deserialize))]
8282
#[derive(Clone, Debug, Encode, Decode, TypeInfo, PartialEq, Eq, derive_more::Display)]
8383
#[display(
8484
"Announce(block: {block_hash}, parent: {parent}, gas: {gas_allowance:?}, txs: {injected_transactions:?})"
@@ -140,7 +140,7 @@ pub enum PromisePolicy {
140140
}
141141

142142
#[derive(PartialEq, Eq, Hash, Debug, Clone, Copy, Default, Encode, Decode, TypeInfo)]
143-
#[cfg_attr(feature = "std", derive(serde::Serialize))]
143+
#[cfg_attr(feature = "std", derive(serde::Serialize, serde::Deserialize))]
144144
pub struct StateHashWithQueueSize {
145145
pub hash: H256,
146146
pub canonical_queue_size: u8,

ethexe/rpc/src/apis/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub use announce::{AnnounceApi, AnnounceServer};
2626
pub use block::{BlockApi, BlockServer};
2727
pub use code::{CodeApi, CodeServer};
2828
pub use injected::{InjectedApi, InjectedServer};
29-
pub use program::{ProgramApi, ProgramServer};
29+
pub use program::{FullProgramState, ProgramApi, ProgramServer};
3030

3131
#[cfg(feature = "client")]
3232
pub use crate::apis::{

ethexe/rpc/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

1919
#[cfg(feature = "client")]
20-
pub use crate::apis::{BlockClient, CodeClient, FullProgramState, InjectedClient, ProgramClient};
20+
pub use crate::apis::{
21+
AnnounceClient, BlockClient, CodeClient, FullProgramState, InjectedClient, ProgramClient,
22+
};
2123

2224
use anyhow::Result;
2325
use apis::{

0 commit comments

Comments
 (0)