-
Notifications
You must be signed in to change notification settings - Fork 95
compiler: set SourceURL in NEF file #4042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
79d446d
to
3d351a9
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4042 +/- ##
==========================================
- Coverage 72.65% 72.57% -0.08%
==========================================
Files 364 364
Lines 56737 56737
==========================================
- Hits 41222 41179 -43
- Misses 13785 13826 +41
- Partials 1730 1732 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks legit.
pkg/neotest/compile_test.go
Outdated
require.NotEqual(t, contract1, contract2) | ||
} | ||
|
||
func TestAddSourceURLToNEFI(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/TestAddSourceURLToNEFI/TestAddSourceURLToNEF
require.NoError(t, err) | ||
|
||
o := &compiler.Options{} | ||
o.SourceURL = conf.SourceURL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of moving this line...
ne, di, err := compiler.CompileWithOptions(srcPath, nil, o) | ||
require.NoError(t, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just move this part ahead of m, err := compiler.CreateManifest(di, o)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is already ahead.
Close #3543. Signed-off-by: Tural Devrishev <[email protected]>
3d351a9
to
6c50f45
Compare
Close #3543.