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

Fix pickitem and vm cli 2.x #967

Merged
merged 3 commits into from
May 21, 2020
Merged

Conversation

roman-khimov
Copy link
Member

Problem

#965.

Solution

Fix it and improve vm cli a bit.

It was setting a (wrong) breakpoint and couldn't then break out of it.
bafdb91 change was wrong (probably brought
from neo-vm 3.0 at the state at which it existed back then), neo-vm 2.x
doesn't allow PICKITEM for arbitrary types.
@roman-khimov roman-khimov requested a review from fyrchik May 21, 2020 09:20
@codecov
Copy link

codecov bot commented May 21, 2020

Codecov Report

Merging #967 into master-2.x will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master-2.x     #967   +/-   ##
===========================================
  Coverage       68.21%   68.21%           
===========================================
  Files             144      144           
  Lines           14185    14181    -4     
===========================================
- Hits             9676     9674    -2     
+ Misses           4057     4055    -2     
  Partials          452      452           
Impacted Files Coverage Δ
pkg/vm/vm.go 86.65% <100.00%> (-0.06%) ⬇️
pkg/rpc/client/wsclient.go 85.71% <0.00%> (+1.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03cc8c1...1721360. Read the comment docs.

@roman-khimov roman-khimov added bug Something isn't working vm VM tasks/bugs/issues labels May 21, 2020
return nil, err
}
item = vm.NewBigIntegerItem(val)
case stringType:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mabe some sort of hex will also be useful

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a lot of room for improvement there, add an issue for it.

@roman-khimov roman-khimov merged commit d0853c0 into master-2.x May 21, 2020
@roman-khimov roman-khimov deleted the fix-pickitem-and-vm-cli-2.x branch May 21, 2020 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vm VM tasks/bugs/issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants