Skip to content

Commit

Permalink
fixup a few missing penumbra branches in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avahowell committed Feb 26, 2024
1 parent e669165 commit b867d4c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/relayer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,11 +657,10 @@ impl ChainConfig {
}
}

// TODO(extract): needs to be changed to return &str so penumbra can return ""
pub fn key_name(&self) -> &String {
pub fn key_name(&self) -> &str {
match self {
Self::CosmosSdk(config) => &config.key_name,
Self::Penumbra(config) => &config.stub_key_name,
Self::Penumbra(_) => "",
}
}

Expand Down
2 changes: 2 additions & 0 deletions tools/integration-test/src/tests/fee/filter_fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ impl TestOverrides for FilterIncentivizedFeesRelayerTest {
ChainConfig::CosmosSdk(chain_config) => {
chain_config.packet_filter = packet_filter.clone();
}
ChainConfig::Penumbra(_) => todo!(),
}
}
}
Expand Down Expand Up @@ -183,6 +184,7 @@ impl TestOverrides for FilterByChannelIncentivizedFeesRelayerTest {
ChainConfig::CosmosSdk(chain_config) => {
chain_config.packet_filter = packet_filter.clone();
}
ChainConfig::Penumbra(_) => todo!(),
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions tools/integration-test/src/tests/ica.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ impl TestOverrides for IcaFilterTestAllow {
ChainConfig::CosmosSdk(chain_config) => {
chain_config.packet_filter = self.packet_filter.clone();
}
ChainConfig::Penumbra(_) => todo!(),
}
}
}
Expand Down Expand Up @@ -203,6 +204,7 @@ impl TestOverrides for IcaFilterTestDeny {
FilterPattern::Wildcard("*".parse().unwrap()),
)]));
}
ChainConfig::Penumbra(_) => todo!(),
}
}
}
Expand Down

0 comments on commit b867d4c

Please sign in to comment.