Skip to content

Commit

Permalink
Use typed comparation
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed Oct 6, 2024
1 parent a3c0cdb commit f0b2d88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions network-upgrader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ async fn upgrade_consensus_parameters(

let deserialize =
postcard::from_bytes::<ConsensusParameters>(&serialized_consensus_parameters)?;
let deserialize_json = serde_json::to_string_pretty(&deserialize)?;
assert_eq!(deserialize_json, consensus_parameters);
assert_eq!(deserialize, new_consensus_parameters);

let checksum = Hasher::hash(&serialized_consensus_parameters);
let witness_index = 0;
Expand Down

0 comments on commit f0b2d88

Please sign in to comment.