-
Notifications
You must be signed in to change notification settings - Fork 37
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
Check the account alongside the public key #2883
Conversation
72f5541
to
70ca640
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2883 +/- ##
==========================================
+ Coverage 23.53% 23.54% +0.01%
==========================================
Files 776 776
Lines 45302 45273 -29
==========================================
- Hits 10660 10658 -2
+ Misses 33792 33769 -23
+ Partials 850 846 -4 ☔ View full report in Codecov by Sentry. |
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.
looks good, but lets fix the format accurately
|
70ca640
to
68a2ab1
Compare
68a2ab1
to
4dbc22d
Compare
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.
Looks OK and green.
) | ||
WithEACLTable(&table) | ||
|
||
if sa := reqInfo.SenderAccount(); sa != nil && !sa.IsZero() { |
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.
can it ever be nil? seems like we can get rid of a pointer
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.
missing sender is a strange thing to me, an error should appear earlier, no?
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.
Before this change, the account wasn't represented at all. It was only key []byte
. According to the code, at this point, it can't be nil, but in the future - nobody knows.
Do you suggest removing the pointer?
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.
Can you wrap some too long lines in the commit body? We have some rules about it: https://github.com/nspcc-dev/.github/blob/master/git.md
Otherwise, ok.
@@ -18,7 +18,7 @@ require ( | |||
github.com/nspcc-dev/neo-go v0.106.3 | |||
github.com/nspcc-dev/neofs-api-go/v2 v2.14.1-0.20240305074711-35bc78d84dc4 | |||
github.com/nspcc-dev/neofs-contract v0.20.0 | |||
github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.12 | |||
github.com/nspcc-dev/neofs-sdk-go v1.0.0-rc.12.0.20240807160341-3528eb5bb1cc |
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.
oh, i really dont like we are updating SDK at this moment (it is being changed a lot now) in one of the pre-release PR, but if we need it to be done, ok
) | ||
WithEACLTable(&table) | ||
|
||
if sa := reqInfo.SenderAccount(); sa != nil && !sa.IsZero() { |
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.
missing sender is a strange thing to me, an error should appear earlier, no?
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.
nice overall
@smallhive i left several suggestions up to u
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
Linter message: staticcheck SA1019: eaclSDK.NewTableFromV2 is deprecated: BUG: container ID length is not checked. Use [Table.ReadFromV2] instead. Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
The object can't be a slice with only zeros. Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
4dbc22d
to
f8ccf59
Compare
Refs nspcc-dev/neofs-api#278