Skip to content

Commit

Permalink
fix: check internalABCICodespace (#10)
Browse files Browse the repository at this point in the history
* fix: check UndefinedCodespace too

* Update types/errors/abci.go

Co-authored-by: Yongwoo Lee <[email protected]>

Co-authored-by: Yongwoo Lee <[email protected]>
  • Loading branch information
2 people authored and Sangyeop.lee committed Dec 8, 2020
1 parent 0cc0556 commit 3d73f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/errors/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func Redact(err error) error {
if ErrPanic.Is(err) {
return ErrPanic
}
if abciCode(err) == internalABCICode {
if abciCode(err) == internalABCICode && abciCodespace(err) == internalABCICodespace {
return errInternal
}
return err
Expand Down

0 comments on commit 3d73f3e

Please sign in to comment.