Revert "rpc: marshal fees and GAS as Fixed8 decimal"
This reverts commit a79b12b4d4
.
This commit is contained in:
parent
71494e6ae4
commit
b0fbd897ad
8 changed files with 34 additions and 51 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue