Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
sc-executor-polkavm: Migrate into PolkaVM 0.18.0 #6533
sc-executor-polkavm: Migrate into PolkaVM 0.18.0 #6533
Changes from all commits
f91a828
618dc43
86179c2
1bae57b
1f888ed
cfa00ce
5b37507
0582e94
f173aae
2590aab
def26a5
6edfed7
f69b82d
0eedd5e
9b8bc81
e001c39
f7aa8a1
9f49e12
284d1f3
bdaa448
ae00e1c
a4190e3
e259528
8e3bb67
52289aa
6182ec8
5fa39bb
7a30409
8491e6e
bb9de25
c643934
c014bd8
68f7263
b3725df
07863f2
7defa51
73ed0a6
3bcbc83
ba53f46
a0a85e0
5e04285
6afa0e3
5437217
028b52f
b9f7879
af7580e
d78c3c7
b19f044
979e718
3abc94a
c95f16c
de8fb52
cc7a05d
2d39944
f2e9983
c023ca2
98d909c
10b6490
a2a24d3
d680f3d
44e1dab
0c162bd
f9ab11d
72ec780
db0fed9
2aff575
e132b7c
8b0fcd6
82ab893
f91314b
14374d0
93dc0ba
93fbd0d
524cf22
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 for the record, I'm not a fan of this solution. In this form, the parsed blob and the raw blob are not guaranteed to correspond to the same code. I mean, ideally, those guarantees should be provided by PolkaVM itself, not by a dependent package.
It's not a show-stopper, but I think it should be improved in the future.
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.
The reason for this change was that
as_bytes()
no longer exists. Please provide an alternative solution.How it right now was based on a comment from @koute.
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.
@s0me0ne-unkn0wn See my comment here regarding this. We will remove this field altogether in the future; it's just here to not add more churn than necessary, considering the PolkaVM-based executor is still experimental anyway.
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.
OK good (the links above link to the same comment).
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.
The parsing could have been done lazily in
.as_polkavm_blob()
as well.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.
And here's a good example of what I meant in a comment above. In this occurrence, it's
PolkaVM(ref blob)
, and in the next one, it'sPolkaVM((ref blob, _))
. That is, we've already started to call two different things a "blob". That's error-prone and causes confusion, and overall, there's a lot of room for design improvement here.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.
Let's make it clear, at least at the variable name level, for now.