compiler: provide filename to Compile()

This commit is contained in:
Evgenii Stratonikov 2020-08-10 13:06:06 +03:00
parent d8db85ef55
commit 057e1c6e3c
9 changed files with 19 additions and 18 deletions

View file

@ -118,7 +118,7 @@ func TestContractWithNoMain(t *testing.T) {
someLocal := 2
return someGlobal + someLocal + a
}`
b, di, err := compiler.CompileWithDebugInfo(strings.NewReader(src))
b, di, err := compiler.CompileWithDebugInfo("foo.go", strings.NewReader(src))
require.NoError(t, err)
v := vm.New()
invokeMethod(t, "Add3", b, v, di)