Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Jan 25, 2024
1 parent 1db45bc commit 73982de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions sdk/tests/types/api/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use iota_sdk::types::{
UtxoChangesFullResponse, UtxoChangesResponse, ValidatorResponse, ValidatorsResponse,
},
block::{
output::{Output, OutputMetadata, OutputWithMetadata},
output::{OutputMetadata, OutputWithMetadata},
slot::SlotCommitment,
BlockDto, BlockId,
},
Expand All @@ -30,7 +30,7 @@ where
let t = serde_json::from_value::<T>(value_des.clone())?;
let value_ser = serde_json::to_value(&t)?;

// assert_eq!(value_des, value_ser);
assert_eq!(value_des, value_ser);

Ok(t)
}
Expand Down
11 changes: 4 additions & 7 deletions sdk/tests/types/api/fixtures/get-info-response-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"pruningEpoch": 4
},
"metrics": {
"blocksPerSecond": "1.1E+00",
"confirmedBlocksPerSecond": "2.2E+00",
"confirmationRate": "3.3E+00"
"blocksPerSecond": "1.1",
"confirmedBlocksPerSecond": "2.2",
"confirmationRate": "3.3"
},
"protocolParameters": [
{
Expand Down Expand Up @@ -107,8 +107,5 @@
"unit": "SMR",
"subunit": "glow",
"decimals": 6
},
"features": [
"test"
]
}
}

0 comments on commit 73982de

Please sign in to comment.