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

Prevent potential NPE in NEO3WalletFromPublicKey #340

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider commented Sep 20, 2021

The bug was detected after local updating of neo-go library which started to use Curve field in PublicKey.Address method.

Copy `Curve` field of `ecdsa.PublicKey` arg to `keys.PublicKey` instance in
`NEO3WalletFromPublicKey` function.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
@cthulhu-rider cthulhu-rider added the bug Something isn't working label Sep 20, 2021
@cthulhu-rider cthulhu-rider self-assigned this Sep 20, 2021
@codecov
Copy link

codecov bot commented Sep 20, 2021

Codecov Report

Merging #340 (f0437e9) into master (6d0b313) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head f0437e9 differs from pull request most recent head 881a13f. Consider uploading reports for the commit 881a13f to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master     #340   +/-   ##
=======================================
  Coverage   63.05%   63.06%           
=======================================
  Files         119      119           
  Lines       13844    13845    +1     
=======================================
+ Hits         8730     8731    +1     
  Misses       4122     4122           
  Partials      992      992           
Impacted Files Coverage Δ
pkg/owner/wallet.go 57.14% <100.00%> (+2.14%) ⬆️

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 6d0b313...881a13f. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants