Use []byte instead of Bytes, use tmlibs/common.KVPair

This commit is contained in:
Jae Kwon
2017-12-26 04:52:02 -08:00
parent a861d68a31
commit e1ff53fd0b
9 changed files with 199 additions and 225 deletions

View File

@ -8,6 +8,7 @@ import (
"github.com/gogo/protobuf/proto"
"github.com/stretchr/testify/assert"
cmn "github.com/tendermint/tmlibs/common"
)
func TestMarshalJSON(t *testing.T) {
@ -19,7 +20,7 @@ func TestMarshalJSON(t *testing.T) {
Code: 1,
Data: []byte("hello"),
Gas: 43,
Fee: KI64Pair{[]byte("pho"), 12},
Fee: cmn.KI64Pair{[]byte("pho"), 12},
}
b, err = json.Marshal(&r1)
assert.Nil(t, err)