Skip to content

Commit 436703f

Browse files
committed
refactor(ibc-core): remove ProofSpecs::default()
1 parent f1c1f13 commit 436703f

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

ibc-clients/ics07-tendermint/src/client_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ mod tests {
112112
unbonding_period: Duration::new(128000, 0),
113113
max_clock_drift: Duration::new(3, 0),
114114
latest_height: Height::new(1, 10).expect("Never fails"),
115-
proof_specs: ProofSpecs::default(),
115+
proof_specs: ProofSpecs::cosmos(),
116116
upgrade_path: Default::default(),
117117
allow_update: AllowUpdate {
118118
after_expiry: false,

ibc-clients/ics07-tendermint/types/src/client_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ mod tests {
444444
unbonding_period: Duration::new(128000, 0),
445445
max_clock_drift: Duration::new(3, 0),
446446
latest_height: Height::new(0, 10).expect("Never fails"),
447-
proof_specs: ProofSpecs::default(),
447+
proof_specs: ProofSpecs::cosmos(),
448448
upgrade_path: Default::default(),
449449
allow_update: AllowUpdate {
450450
after_expiry: false,

ibc-core/ics23-commitment/types/src/specs.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ impl ProofSpecs {
2525
}
2626
}
2727

28-
impl Default for ProofSpecs {
29-
fn default() -> Self {
30-
Self::cosmos()
31-
}
32-
}
33-
3428
impl From<Vec<RawProofSpec>> for ProofSpecs {
3529
fn from(ics23_specs: Vec<RawProofSpec>) -> Self {
3630
Self(

ibc-testkit/src/fixtures/core/channel/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn dummy_raw_channel_end(state: i32, channel_id: Option<u64>) -> RawChannel
4646
state,
4747
ordering: 2,
4848
counterparty: Some(dummy_raw_counterparty_chan(channel_id)),
49-
connection_hops: vec![ConnectionId::default().to_string()],
49+
connection_hops: vec![ConnectionId::new(0).to_string()],
5050
version: "".to_string(), // The version is not validated.
5151
}
5252
}

0 commit comments

Comments
 (0)