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 unwrap.Nothing function #3117

Merged
merged 1 commit into from
Sep 4, 2023
Merged

Add unwrap.Nothing function #3117

merged 1 commit into from
Sep 4, 2023

Conversation

tatiana-nspcc
Copy link
Contributor

Problem

A check for successful invocation (in the HALT state) that returns nothing is required.
The problem is described in #3070

Solution

Add unwrap.Nothing(aer, error) error for it, which should expect zero stack items and the HALT state.

Close #3070

The `Nothing` function expects zero stack items and a successful invocation
(HALT state).

Signed-off-by: Tatiana Nesterenko <[email protected]>
@codecov
Copy link

codecov bot commented Sep 3, 2023

Codecov Report

Merging #3117 (acd8219) into master (0d30c83) will increase coverage by 84.84%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           master    #3117       +/-   ##
===========================================
+ Coverage        0   84.84%   +84.84%     
===========================================
  Files           0      330      +330     
  Lines           0    44343    +44343     
===========================================
+ Hits            0    37625    +37625     
- Misses          0     5207     +5207     
- Partials        0     1511     +1511     
Files Changed Coverage Δ
pkg/rpcclient/unwrap/unwrap.go 100.00% <100.00%> (ø)

... and 329 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@roman-khimov roman-khimov merged commit 5180305 into master Sep 4, 2023
14 of 18 checks passed
@roman-khimov roman-khimov deleted the 3070-unwrap-nothing branch September 4, 2023 05:49
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.

Add unwrap.Nothing
2 participants