File tree Expand file tree Collapse file tree
crates/common/src/interop/ssv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,11 +74,11 @@ impl<'de> Deserialize<'de> for SSVPublicValidator {
7474 D : Deserializer < ' de > ,
7575 {
7676 #[ derive( Deserialize ) ]
77- struct SSVValidatorOld {
77+ struct SSVValidator {
7878 public_key : String ,
7979 }
8080
81- let s = SSVValidatorOld :: deserialize ( deserializer) ?;
81+ let s = SSVValidator :: deserialize ( deserializer) ?;
8282 let bytes = alloy:: hex:: decode ( & s. public_key ) . map_err ( serde:: de:: Error :: custom) ?;
8383 let pubkey = BlsPublicKey :: deserialize ( & bytes)
8484 . map_err ( |e| serde:: de:: Error :: custom ( format ! ( "invalid BLS public key: {e:?}" ) ) ) ?;
@@ -93,11 +93,11 @@ impl Serialize for SSVPublicValidator {
9393 S : serde:: Serializer ,
9494 {
9595 #[ derive( Serialize ) ]
96- struct SSVValidatorOld {
96+ struct SSVValidator {
9797 public_key : String ,
9898 }
9999
100- let s = SSVValidatorOld { public_key : self . pubkey . as_hex_string ( ) } ;
100+ let s = SSVValidator { public_key : self . pubkey . as_hex_string ( ) } ;
101101 s. serialize ( serializer)
102102 }
103103}
You can’t perform that action at this time.
0 commit comments