Revert "rpc: marshal fees and GAS as Fixed8 decimal"

This reverts commit a79b12b4d4.
This commit is contained in:
Evgeniy Stratonikov 2021-02-09 11:16:18 +03:00
parent 71494e6ae4
commit b0fbd897ad
8 changed files with 34 additions and 51 deletions

View file

@ -132,21 +132,7 @@ func TestMarshalUnmarshalJSONAppExecResult(t *testing.T) {
Events: []NotificationEvent{},
},
}
data, err := json.Marshal(appExecResult)
require.NoError(t, err)
expected := `{
"container":"0x` + appExecResult.Container.StringLE() + `",
"trigger":"Application",
"vmstate":"HALT",
"gasconsumed":"0.0000001",
"stack":[],
"notifications":[]
}`
require.JSONEq(t, expected, string(data))
actual := new(AppExecResult)
require.NoError(t, json.Unmarshal(data, actual))
require.Equal(t, appExecResult, actual)
testserdes.MarshalUnmarshalJSON(t, appExecResult, new(AppExecResult))
})
t.Run("positive, fault state", func(t *testing.T) {