Files
tendermint/abci/example/code/code.go
mergify[bot] 53ac7fcf14 Rejects empty transactions in the example kvstore (#9823) (#9841)
* Rejects empty transactions in the example kvstore

* Add code for rejected transaction; Add test for txn rejection;

* Apply suggestions from code review

Co-authored-by: Sergio Mena <sergio@informal.systems>
(cherry picked from commit 49502dae92)

Co-authored-by: Lasaro Camargos <lasaro@informal.systems>
2022-12-06 14:22:35 -03:00

13 lines
295 B
Go

package code
// Return codes for the examples
const (
CodeTypeOK uint32 = 0
CodeTypeEncodingError uint32 = 1
CodeTypeBadNonce uint32 = 2
CodeTypeUnauthorized uint32 = 3
CodeTypeUnknownError uint32 = 4
CodeTypeExecuted uint32 = 5
CodeTypeRejected uint32 = 6
)