From 1663ef544814309a35937b8c288b22d0943855b0 Mon Sep 17 00:00:00 2001 From: Colin Axner Date: Thu, 30 Jul 2020 13:16:33 +0200 Subject: [PATCH] fix nil check bug --- x/ibc/23-commitment/types/merkle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/ibc/23-commitment/types/merkle.go b/x/ibc/23-commitment/types/merkle.go index e8c7a44228f6..3636cecf4eb1 100644 --- a/x/ibc/23-commitment/types/merkle.go +++ b/x/ibc/23-commitment/types/merkle.go @@ -366,7 +366,7 @@ func convertProofs(mproof MerkleProof) ([]*ics23.CommitmentProof, error) { // Empty returns true if the root is empty func (proof MerkleProof) Empty() bool { - return proof.Proof.Equal(nil) || proof.Equal(MerkleProof{}) || proof.Proof.Equal(nil) || proof.Proof.Equal(merkle.Proof{}) + return proof.Equal(nil) || proof.Equal(MerkleProof{}) || proof.Proof.Equal(nil) || proof.Proof.Equal(merkle.Proof{}) } // ValidateBasic checks if the proof is empty.