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 Woosang Son committed Mar 19, 2021
1 parent d3e8ed6 commit ffc1a8b
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 @@ -160,7 +160,7 @@ func Redact(err error) error {
if ErrPanic.Is(err) {
return errPanicWithMsg
}
if abciCode(err) == internalABCICode {
if abciCode(err) == internalABCICode && abciCodespace(err) == internalABCICodespace {
return errInternal
}

Expand Down

0 comments on commit ffc1a8b

Please sign in to comment.