-
Notifications
You must be signed in to change notification settings - Fork 1k
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
DeprecatedIn
for events
#3362
DeprecatedIn
for events
#3362
Conversation
Not related error with windows unit tests. CSC : error CS2012: Cannot open 'D:\a\neo\neo\src\Plugins\RpcServer\obj\Debug\net8.0\RpcServer.dll' for writing -- 'The process cannot access the file 'D:\a\neo\neo\src\Plugins\RpcServer\obj\Debug\net8.0\RpcServer.dll' because it is being used by another process.' [D:\a\neo\neo\src\Plugins\RpcServer\RpcServer.csproj] |
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.
Perhaps a minimum UT would be good, can we simulate that?
UT on this would be complex, need a how new hardfork environment setting. This is like a copy of deprecatedIn for method, should be fine as its already working properly in 3.7.4. |
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.
LGTM.
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.
Does it cover all types of events and notifications, @shargon ? As @AnnaShaleva commented?
Perhaps some UTs are necessary.
It does.
But the thing is that we just don't have a use-case for it for real native contracts, thus it will be hard to test. The code is rather simple, and we can test it once we get a native notification that should be disabled. |
So maybe this PR should be in stand by until there as well. |
It should be possible to test with some fake native contract, but I'm not sure the codebase allows for this (plugging an additional contract into the current set from test). |
UT was added |
{ | ||
DeprecatedIn = deprecatedIn; | ||
} | ||
|
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.
Do you really need all these constructors
? Unless their required and absolutely needed than yes, otherwise just make properties your setting Public
. Public
for optional.
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.
Yes because enum doesn't work as arguments :(
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.
LGTM.
…ests * 'snapshot-tests' of github.com:Jim8y/neo: Fix crash when comparing ContractPermissionDescriptor (neo-project#3396) `DeprecatedIn` for events (neo-project#3362) Fix download tips (neo-project#3395)
Description
Partially close #3210
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: