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

fix: super defensive checks in ValAddressFromBech32 and AccAddressFromBech32 #872

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

joe-bowman
Copy link
Contributor

1. Summary

Fixes #855

Adds super defensive checks in case AddressFromBech32 is ever changed.

2.Type of change

  • Bug fix (non-breaking change which fixes an issue)

3. Implementation details

Ensure we always explicitly return nil on error.

Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Merging #872 (f53d9c1) into main (e9a9500) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #872      +/-   ##
==========================================
+ Coverage   61.87%   61.88%   +0.01%     
==========================================
  Files         172      172              
  Lines       14079    14085       +6     
==========================================
+ Hits         8711     8717       +6     
  Misses       4623     4623              
  Partials      745      745              
Flag Coverage Δ
unittests 61.88% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
utils/addressutils/address.go 80.00% <100.00%> (+2.22%) ⬆️

@faddat faddat merged commit 1524a17 into main Dec 12, 2023
13 checks passed
@joe-bowman joe-bowman deleted the 855-defensive-checks branch December 19, 2023 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants