diff --git a/state/indexer/block/kv/kv_test.go b/state/indexer/block/kv/kv_test.go index 75f9266d3..43770ae6c 100644 --- a/state/indexer/block/kv/kv_test.go +++ b/state/indexer/block/kv/kv_test.go @@ -156,13 +156,13 @@ func TestBlockIndexerMulti(t *testing.T) { Type: "end_event", Attributes: []abci.EventAttribute{ { - Key: []byte("foo"), - Value: []byte("100"), + Key: "foo", + Value: "100", Index: true, }, { - Key: []byte("bar"), - Value: []byte("200"), + Key: "bar", + Value: "200", Index: true, }, }, @@ -171,13 +171,13 @@ func TestBlockIndexerMulti(t *testing.T) { Type: "end_event", Attributes: []abci.EventAttribute{ { - Key: []byte("foo"), - Value: []byte("300"), + Key: "foo", + Value: "300", Index: true, }, { - Key: []byte("bar"), - Value: []byte("400"), + Key: "bar", + Value: "400", Index: true, }, }, @@ -197,13 +197,13 @@ func TestBlockIndexerMulti(t *testing.T) { Type: "end_event", Attributes: []abci.EventAttribute{ { - Key: []byte("foo"), - Value: []byte("100"), + Key: "foo", + Value: "100", Index: true, }, { - Key: []byte("bar"), - Value: []byte("200"), + Key: "bar", + Value: "200", Index: true, }, }, @@ -212,13 +212,13 @@ func TestBlockIndexerMulti(t *testing.T) { Type: "end_event", Attributes: []abci.EventAttribute{ { - Key: []byte("foo"), - Value: []byte("300"), + Key: "foo", + Value: "300", Index: true, }, { - Key: []byte("bar"), - Value: []byte("400"), + Key: "bar", + Value: "400", Index: true, }, }, diff --git a/state/txindex/kv/kv_test.go b/state/txindex/kv/kv_test.go index 4b39a4727..434d0b0ac 100644 --- a/state/txindex/kv/kv_test.go +++ b/state/txindex/kv/kv_test.go @@ -144,9 +144,9 @@ func TestTxSearchEventMatch(t *testing.T) { indexer := NewTxIndex(db.NewMemDB()) txResult := txResultWithEvents([]abci.Event{ - {Type: "account", Attributes: []abci.EventAttribute{{Key: []byte("number"), Value: []byte("1"), Index: true}, {Key: []byte("owner"), Value: []byte("Ana"), Index: true}}}, - {Type: "account", Attributes: []abci.EventAttribute{{Key: []byte("number"), Value: []byte("2"), Index: true}, {Key: []byte("owner"), Value: []byte("Ivan"), Index: true}}}, - {Type: "", Attributes: []abci.EventAttribute{{Key: []byte("not_allowed"), Value: []byte("Vlad"), Index: true}}}, + {Type: "account", Attributes: []abci.EventAttribute{{Key: "number", Value: "1", Index: true}, {Key: "owner", Value: "Ana", Index: true}}}, + {Type: "account", Attributes: []abci.EventAttribute{{Key: "number", Value: "2", Index: true}, {Key: "owner", Value: "Ivan", Index: true}}}, + {Type: "", Attributes: []abci.EventAttribute{{Key: "not_allowed", Value: "Vlad", Index: true}}}, }) err := indexer.Index(txResult)