Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ibc-clients/tendermint): disallow empty proof-specs and empty depth range in proof-specs #1104

Prev Previous commit
use impl method
  • Loading branch information
rnbguy committed Mar 1, 2024
commit 8816158a3d652ee677a8a87c3b458b0efdf9eb75
2 changes: 1 addition & 1 deletion ibc-core/ics23-commitment/types/src/specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl ProofSpecs {
}

pub fn validate(&self) -> Result<(), CommitmentError> {
if self.0.is_empty() {
if self.is_empty() {
return Err(CommitmentError::EmptyProofSpecs);
}
for proof_spec in &self.0 {
Expand Down
Loading