manifest: include contract Name

This commit is contained in:
Evgenii Stratonikov 2020-11-20 11:02:58 +03:00
parent 5f21178fe9
commit c849176be7
25 changed files with 59 additions and 41 deletions

View file

@ -149,10 +149,11 @@ func _deploy(isUpdate bool) {}
}
t.Run("convert to Manifest", func(t *testing.T) {
actual, err := d.ConvertToManifest(nil)
actual, err := d.ConvertToManifest("MyCTR", nil)
require.NoError(t, err)
// note: offsets are hard to predict, so we just take them from the output
expected := &manifest.Manifest{
Name: "MyCTR",
ABI: manifest.ABI{
Hash: hash.Hash160(buf),
Methods: []manifest.Method{