Add serde deser to AttestationDataAndCustodyBit

This commit is contained in:
Paul Hauner 2019-05-22 14:49:14 +10:00
parent 1eeaaaa92b
commit 07b94b30ba
No known key found for this signature in database
GPG Key ID: 5E2CFF9B75FA63DF

View File

@ -1,6 +1,6 @@
use super::AttestationData; use super::AttestationData;
use crate::test_utils::TestRandom; use crate::test_utils::TestRandom;
use serde_derive::Serialize; use serde_derive::{Deserialize, Serialize};
use ssz_derive::{Decode, Encode}; use ssz_derive::{Decode, Encode};
use test_random_derive::TestRandom; use test_random_derive::TestRandom;
use tree_hash_derive::{CachedTreeHash, TreeHash}; use tree_hash_derive::{CachedTreeHash, TreeHash};
@ -14,6 +14,7 @@ use tree_hash_derive::{CachedTreeHash, TreeHash};
PartialEq, PartialEq,
Default, Default,
Serialize, Serialize,
Deserialize,
Encode, Encode,
Decode, Decode,
TreeHash, TreeHash,