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
*: add invocations to applicationlog #3569
base: master
Are you sure you want to change the base?
*: add invocations to applicationlog #3569
Changes from all commits
d8a0d13
04c71f5
dfd5c9b
cd7caf5
e7063a2
ae3b481
bc4cb3d
5ffb57d
90c18b7
d1d0921
25e93ec
72caf56
4876e70
036e6cb
7b83ff3
fa29376
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 420 in pkg/core/blockchain.go
Codecov / codecov/patch
pkg/core/blockchain.go#L420
Check warning on line 461 in pkg/core/blockchain.go
Codecov / codecov/patch
pkg/core/blockchain.go#L461
Check warning on line 1725 in pkg/core/blockchain.go
Codecov / codecov/patch
pkg/core/blockchain.go#L1725
Check warning on line 513 in pkg/core/dao/dao.go
Codecov / codecov/patch
pkg/core/dao/dao.go#L512-L513
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.
Regarding this: #3569 (comment)
This behaviour is likely caused by the behaviour of
(e Element) Array()
:args
is an underlying content of either VMArray
or VMStruct
:neo-go/pkg/vm/stack.go
Lines 96 to 101 in 673b26f
When serializing it, you enforce
args
to be wrapped into array irrespectively of the original type. However, if the old serialization context is used, the information about slice type is stored in the context, hence we've got a struct. The correct behaviour is to preserve the original type of arguments. To solve this problem we need: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.
It still fails after changing to this
I tried the old one with the
and with
In both cases the underlying type changes from
Array
toStruct
Check warning on line 82 in pkg/core/interop/contract/call.go
Codecov / codecov/patch
pkg/core/interop/contract/call.go#L74-L82
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.
if ci.Arguments == nil && ci.argumentsBytes != nil
Check warning on line 82 in pkg/core/state/contract_invocation.go
Codecov / codecov/patch
pkg/core/state/contract_invocation.go#L81-L82
Check warning on line 86 in pkg/core/state/contract_invocation.go
Codecov / codecov/patch
pkg/core/state/contract_invocation.go#L85-L86
Check warning on line 102 in pkg/core/state/contract_invocation.go
Codecov / codecov/patch
pkg/core/state/contract_invocation.go#L101-L102
Check warning on line 108 in pkg/core/state/contract_invocation.go
Codecov / codecov/patch
pkg/core/state/contract_invocation.go#L107-L108
Check warning on line 111 in pkg/core/state/contract_invocation.go
Codecov / codecov/patch
pkg/core/state/contract_invocation.go#L110-L111