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: btc decode address #1528

Merged
merged 17 commits into from
Jan 9, 2024
Merged

fix: btc decode address #1528

merged 17 commits into from
Jan 9, 2024

Conversation

kingpinXD
Copy link
Contributor

@kingpinXD kingpinXD commented Jan 5, 2024

Description

Adds a wrapper function for btcUtils.DecodeAddress
Note: This PR only adds a solution to avoid panic. The original reason that can create these malformed addresses might be a more significant concern and is being looked into separately.

Closes: (#1527)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.

  • Tested CCTX in localnet
  • Tested in development environment
  • Go unit tests
  • Go integration tests
  • Tested via GitHub Actions

Checklist:

  • I have added unit tests that prove my fix feature works

common/address.go Outdated Show resolved Hide resolved
@kingpinXD kingpinXD changed the title fix:btc decode address fix: btc decode address Jan 5, 2024
@kingpinXD kingpinXD marked this pull request as ready for review January 5, 2024 18:52
common/address.go Outdated Show resolved Hide resolved
common/address.go Outdated Show resolved Hide resolved
common/address.go Outdated Show resolved Hide resolved
kingpinXD and others added 3 commits January 7, 2024 09:37
Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
@kingpinXD kingpinXD requested a review from lumtis January 7, 2024 14:38
common/address.go Outdated Show resolved Hide resolved
Co-authored-by: Lucas Bertrand <lucas.bertrand.22@gmail.com>
Copy link
Collaborator

@brewmaster012 brewmaster012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lumtis lumtis merged commit 0642dbb into develop Jan 9, 2024
15 checks passed
@lumtis lumtis deleted the fix-btc-decode branch January 9, 2024 18:39
This was referenced Jan 18, 2024
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.

None yet

4 participants