mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-01 21:06:11 +00:00
libs/common: refactor libs/common 01 (#4230)
* libs/common: Refactor libs/common 01 Signed-off-by: Marko Baricevic <marbar3778@yahoo.com> * regenerate proto files, move intslice to where its used * update kv.KVPair(s) to kv.Pair(s) * add changelog entry * make intInSlice private
This commit is contained in:
@@ -187,7 +187,7 @@ func (app *KVStoreApplication) DeliverTx(req types.RequestDeliverTx) types.Respo
|
||||
events := []types.Event{
|
||||
{
|
||||
Type: "app",
|
||||
Attributes: []cmn.KVPair{
|
||||
Attributes: []kv.Pair{
|
||||
{Key: []byte("creator"), Value: []byte("Cosmoshi Netowoko")},
|
||||
{Key: []byte("key"), Value: key},
|
||||
},
|
||||
|
||||
@@ -76,10 +76,10 @@ func (app *KVStoreApplication) DeliverTx(req types.RequestDeliverTx) types.Resul
|
||||
events := []abci.Event{
|
||||
{
|
||||
Type: "transfer",
|
||||
Attributes: cmn.KVPairs{
|
||||
cmn.KVPair{Key: []byte("sender"), Value: []byte("Bob")},
|
||||
cmn.KVPair{Key: []byte("recipient"), Value: []byte("Alice")},
|
||||
cmn.KVPair{Key: []byte("balance"), Value: []byte("100")},
|
||||
Attributes: kv.Pairs{
|
||||
kv.Pair{Key: []byte("sender"), Value: []byte("Bob")},
|
||||
kv.Pair{Key: []byte("recipient"), Value: []byte("Alice")},
|
||||
kv.Pair{Key: []byte("balance"), Value: []byte("100")},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user