init append functionality complete

This commit is contained in:
rigelrozanski
2018-04-26 14:26:39 -04:00
parent 556896679a
commit c8f5fcb27b
5 changed files with 92 additions and 10 deletions
+1 -1
View File
@@ -12,6 +12,7 @@ import (
//func AppendJSON(cdc *wire.Codec, baseJSON []byte, key string, value json.RawMessage) (appended []byte, err error) {
func TestAppendJSON(t *testing.T) {
cdc := wire.NewCodec()
foo := map[string]string{"foo": "foofoo"}
bar := map[string]string{"barInner": "barbar"}
@@ -26,7 +27,6 @@ func TestAppendJSON(t *testing.T) {
barRaw := json.RawMessage(bz)
// make the append
cdc := wire.NewCodec()
appBz, err := AppendJSON(cdc, fooRaw, "barOuter", barRaw)
require.NoError(t, err)