mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-30 19:06:21 +00:00
Add NewError -> Result with no data
This commit is contained in:
@@ -35,3 +35,10 @@ func NewResultOK(data []byte, log string) Result {
|
||||
Log: log,
|
||||
}
|
||||
}
|
||||
|
||||
func NewError(code CodeType, log string) Result {
|
||||
return Result{
|
||||
Code: code,
|
||||
Log: log,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user