Skip to content

Commit

Permalink
nit: use CommitmentProof_Nonexist in expected type error (#7474)
Browse files Browse the repository at this point in the history
* nit: fix error msg to use correct type CommitmentProof_Nonexist

* linter import
  • Loading branch information
damiannolan authored Oct 17, 2024
1 parent f59dbcc commit 83a0223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/23-commitment/types/merkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (proof MerkleProof) VerifyNonMembership(specs []*ics23.ProofSpec, root expo
"got ExistenceProof in VerifyNonMembership. If this is unexpected, please ensure that proof was queried with the correct key.")
default:
return errorsmod.Wrapf(ErrInvalidProof,
"expected proof type: %T, got: %T", &ics23.CommitmentProof_Exist{}, proof.Proofs[0].Proof)
"expected proof type: %T, got: %T", &ics23.CommitmentProof_Nonexist{}, proof.Proofs[0].Proof)
}
return nil
}
Expand Down

0 comments on commit 83a0223

Please sign in to comment.