compiler: provide .go
filename to Compile
First argument contains filename, thus we use '.go' suffix to distinguish between directories and files. Contract name should be provided in options. Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
8af9c870b1
commit
e7a0ecb349
10 changed files with 35 additions and 28 deletions
|
@ -365,7 +365,7 @@ func TestManifestOverload(t *testing.T) {
|
|||
return 4
|
||||
}`
|
||||
|
||||
_, di, err := CompileWithOptions("foo", strings.NewReader(src), nil)
|
||||
_, di, err := CompileWithOptions("foo.go", strings.NewReader(src), nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
m, err := di.ConvertToManifest(&Options{Overloads: map[string]string{"add3Aux": "add3"}})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue