From 266c79e24bf98ebf87e2758bd248947237893889 Mon Sep 17 00:00:00 2001 From: Marshall Kim Date: Thu, 21 May 2020 13:29:38 +0900 Subject: [PATCH] fix: check internalABCICodespace (#10) * fix: check UndefinedCodespace too * Update types/errors/abci.go Co-authored-by: Yongwoo Lee Co-authored-by: Yongwoo Lee --- types/errors/abci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/errors/abci.go b/types/errors/abci.go index cc56335431..51c7087907 100644 --- a/types/errors/abci.go +++ b/types/errors/abci.go @@ -162,7 +162,7 @@ func Redact(err error) error { if ErrPanic.Is(err) { return errors.New(internalABCILog) } - if abciCode(err) == internalABCICode { + if abciCode(err) == internalABCICode && abciCodespace(err) == internalABCICodespace{ return errors.New(internalABCILog) } return err