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

KeyList now handles single key properly as first parameter #1348

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

petreze
Copy link
Contributor

@petreze petreze commented Dec 5, 2022

Signed-off-by: Petar Tonev petar.tonev@limechain.tech

Description:
There was an issue when passing a single key object as a first parameter to KeyList, since the SDK could not proceed when getting a non-list value. Now the SDK acts properly in these cases

Related issue(s):

Fixes #1343

Notes for reviewer:
Added some checks and proper handles based on parameter

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 5, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
26.9% 26.9% Duplication

@codecov
Copy link

codecov bot commented Dec 5, 2022

Codecov Report

Base: 83.45% // Head: 83.47% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (568d543) compared to base (e072814).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1348      +/-   ##
===========================================
+ Coverage    83.45%   83.47%   +0.02%     
===========================================
  Files          292      292              
  Lines        72847    72854       +7     
===========================================
+ Hits         60791    60816      +25     
+ Misses       12056    12038      -18     
Impacted Files Coverage Δ
packages/cryptography/src/primitive/bip39.js 100.00% <100.00%> (ø)
src/KeyList.js 94.41% <100.00%> (+6.52%) ⬆️
src/Cache.js 80.50% <0.00%> (+1.00%) ⬆️
src/Key.js 89.33% <0.00%> (+2.66%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ochikov ochikov merged commit dfc5c87 into develop Dec 5, 2022
@ochikov ochikov deleted the fix/keylist-param branch December 5, 2022 15:59
monokaijs pushed a commit to monostarter/u2u-sdk-js that referenced this pull request Jul 5, 2023
…edger#1348)

Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>

Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing single public key to instantiate new KeyList(publicKey, 1) results in invalid KeyList
2 participants