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

fixture(eaddress): truncate hex string from decrypted bytes (leading 00) #60

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

leventdem
Copy link
Contributor

The decrypted value could contain leading 0 bytes (e.g. KMS returns 32 bytes serialized big int). This behaviour triggers error with getAddress method from ethers which takes hex string and return eth plain address (if hexstring > 40 digits)

The decrypted value could contain leading 0 bytes  (e.g. KMS returns 32 bytes serialized big int).
This behaviour triggers error with getAddress method from ethers which takes
hex string and return eth plain address (if hexstring > 40 digits)
@cla-bot cla-bot bot added the cla-signed label Mar 18, 2024
Copy link

github-actions bot commented Mar 18, 2024

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
91.03% (+0.04% 🔼)
213/234
🟢 Branches
86.05% (+0.33% 🔼)
74/86
🟢 Functions 93.02% 40/43
🟢 Lines
91.71% (+0.04% 🔼)
177/193
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢 utils.ts
94.12% (-0.48% 🔻)
75% 100%
96% (-0.43% 🔻)

Test suite run success

35 tests passing in 5 suites.

Report generated by 🧪jest coverage report action from 1c93456

@immortal-tofu immortal-tofu merged commit a401885 into main Mar 18, 2024
5 checks passed
@immortal-tofu immortal-tofu deleted the fix/eaddress branch December 5, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants