mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-20 18:21:22 +00:00
Merge pull request #87 from tendermint/ResultsLike
Abci result error type comparison
This commit is contained in:
commit
20159f6081
@ -29,6 +29,10 @@ func (res Result) IsErr() bool {
|
|||||||
return res.Code != CodeType_OK
|
return res.Code != CodeType_OK
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (res Result) IsSameCode(compare Result) bool {
|
||||||
|
return res.Code == compare.Code
|
||||||
|
}
|
||||||
|
|
||||||
func (res Result) Error() string {
|
func (res Result) Error() string {
|
||||||
return fmt.Sprintf("ABCI{code:%v, data:%X, log:%v}", res.Code, res.Data, res.Log)
|
return fmt.Sprintf("ABCI{code:%v, data:%X, log:%v}", res.Code, res.Data, res.Log)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user