mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
compiler: use Options
in ConvertToManifest()
This commit is contained in:
parent
03d32ecd61
commit
9fd8577dd9
5 changed files with 13 additions and 13 deletions
|
@ -128,7 +128,7 @@ func TestAppCall(t *testing.T) {
|
|||
}`
|
||||
barCtr, di, err := compiler.CompileWithDebugInfo("bar.go", strings.NewReader(srcDeep))
|
||||
require.NoError(t, err)
|
||||
mBar, err := di.ConvertToManifest("Bar", nil)
|
||||
mBar, err := di.ConvertToManifest(&compiler.Options{Name: "Bar"})
|
||||
require.NoError(t, err)
|
||||
|
||||
barH := hash.Hash160(barCtr)
|
||||
|
@ -160,7 +160,7 @@ func TestAppCall(t *testing.T) {
|
|||
|
||||
inner, di, err := compiler.CompileWithDebugInfo("foo.go", strings.NewReader(srcInner))
|
||||
require.NoError(t, err)
|
||||
m, err := di.ConvertToManifest("Foo", nil)
|
||||
m, err := di.ConvertToManifest(&compiler.Options{Name: "Foo"})
|
||||
require.NoError(t, err)
|
||||
|
||||
ih := hash.Hash160(inner)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue