Skip to content

Conversation

@zone117x
Copy link
Contributor

@zone117x zone117x commented Aug 24, 2022

Fix bug in develop branch where Rosetta memo strings were no longer decoded from hex.

The code was trying to trim NULL bytes from a hex string, which previously used to be a string from Buffer.from(memoBytes).toString() in v4.

This fixes the expected response, and trims bytes off the Buffer before converting to string, rather than depending on undefined behavior with Buffer and trailing null bytes.

@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2022

Codecov Report

Merging #1292 (febbd5c) into develop (aceb7af) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop    #1292   +/-   ##
========================================
  Coverage    77.02%   77.03%           
========================================
  Files          106      106           
  Lines        10046    10053    +7     
  Branches      2158     2160    +2     
========================================
+ Hits          7738     7744    +6     
- Misses        2200     2201    +1     
  Partials       108      108           
Impacted Files Coverage Δ
src/rosetta-helpers.ts 72.85% <100.00%> (+0.37%) ⬆️
src/api/routes/rosetta/construction.ts 73.87% <0.00%> (-0.24%) ⬇️

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

@github-actions
Copy link

@github-actions github-actions bot temporarily deployed to pull request August 24, 2022 13:27 Inactive
@coveralls
Copy link

Coverage Status

Coverage decreased (-18.2%) to 58.687% when pulling febbd5c on fix/rosetta-memo-decode into aceb7af on develop.

@zone117x zone117x merged commit 7711b20 into develop Aug 24, 2022
@zone117x zone117x deleted the fix/rosetta-memo-decode branch August 24, 2022 13:56
@blockstack-devops
Copy link
Contributor

🎉 This PR is included in version 6.0.0-beta.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@blockstack-devops
Copy link
Contributor

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@blockstack-devops
Copy link
Contributor

🎉 This PR is included in version 7.0.0-stacks-2.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

6 participants