Use protobuf enums for CodeType

This commit is contained in:
Jae Kwon
2016-02-04 18:40:02 -08:00
parent a73a65a45b
commit f1b48ff009
3 changed files with 4 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ func TestSerialReap(t *testing.T) {
txBytes := make([]byte, 8)
binary.BigEndian.PutUint64(txBytes, uint64(i))
code, result, logStr := appConnCon.AppendTx(txBytes)
if code != tmsp.RetCodeOK {
if code != tmsp.CodeType_OK {
t.Errorf("Error committing tx. Code:%v result:%X log:%v",
code, result, logStr)
}