Skip to content
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

Add 'neotest.ReadNEF' method #3771

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

Chubru
Copy link
Contributor

@Chubru Chubru commented Dec 19, 2024

Close #3679

Problem

Currently, neotest lacks functionality to load compiled contracts. This feature would be useful for testing migrations between different contract versions.

Solution

Add LoadContract method to load a contract from a NEF file.

While implementing this, I used contractDeploy as a reference.

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.

Project coverage is 83.08%. Comparing base (6d20772) to head (0362359).

Files with missing lines Patch % Lines
pkg/neotest/compile.go 0.00% 24 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3771   +/-   ##
=======================================
  Coverage   83.08%   83.08%           
=======================================
  Files         335      335           
  Lines       46745    46769   +24     
=======================================
+ Hits        38836    38860   +24     
+ Misses       6320     6314    -6     
- Partials     1589     1595    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pkg/neotest/compile.go Outdated Show resolved Hide resolved
pkg/neotest/compile.go Outdated Show resolved Hide resolved
pkg/neotest/compile.go Outdated Show resolved Hide resolved
@Chubru Chubru force-pushed the feat/add_LoadContract branch from 0362359 to a0475a4 Compare December 20, 2024 12:58
@Chubru Chubru force-pushed the feat/add_LoadContract branch from a0475a4 to 0b21d4c Compare December 20, 2024 13:03
@AnnaShaleva AnnaShaleva changed the title Add 'LoadContract' method Add 'neotest.ReadNEF' method Dec 20, 2024
@AnnaShaleva AnnaShaleva merged commit 9928907 into nspcc-dev:master Dec 20, 2024
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support loading precompiled NEF files in neotest
2 participants