core: temp manifest.Extra marshalling fix

Manifest.Extra still serialized as JSON message with undefined  order
of items, so it affects contract states dumps.
This commit is contained in:
Anna Shaleva 2021-02-12 22:32:34 +03:00
parent 5e9d05b9af
commit 0f1473897b
4 changed files with 10 additions and 22 deletions

View file

@ -1,6 +1,7 @@
package compiler
import (
"encoding/json"
"testing"
"github.com/nspcc-dev/neo-go/internal/testserdes"
@ -265,7 +266,7 @@ func _deploy(data interface{}, isUpdate bool) {}
Trusts: manifest.WildUint160s{
Value: []util.Uint160{},
},
Extra: nil,
Extra: json.RawMessage("null"),
}
require.ElementsMatch(t, expected.ABI.Methods, actual.ABI.Methods)
require.Equal(t, expected.ABI.Events, actual.ABI.Events)