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

Trim null bytes from Collateral strings #427

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

nick-mobilecoin
Copy link
Collaborator

@nick-mobilecoin nick-mobilecoin commented Oct 11, 2023

The Collateral strings are coming from a C api which includes the null
trailing byte in the length. In order to work with strict JSON parsers
the null byte is omitted from the final rust String.

The `Collateral` strings are coming from a C api which includes the null
trailing byte in the length. In order to work with strict JSON parsers
the null byte is omitted from the final rust `String`.
@nick-mobilecoin
Copy link
Collaborator Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions github-actions bot added the size/M PRs with less than 250 lines of changes label Oct 11, 2023
@meowblecoinbot meowblecoinbot requested a review from a team October 11, 2023 19:28
@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

Merging #427 (3c06805) into main (84df5be) will increase coverage by 0.06%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #427      +/-   ##
==========================================
+ Coverage   88.39%   88.46%   +0.06%     
==========================================
  Files          40       40              
  Lines        5643     5677      +34     
==========================================
+ Hits         4988     5022      +34     
  Misses        655      655              
Files Coverage Δ
dcap/types/src/collateral.rs 96.18% <100.00%> (+0.18%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nick-mobilecoin nick-mobilecoin requested review from eranrund and dolanbernard and removed request for a team October 11, 2023 19:33
@nick-mobilecoin
Copy link
Collaborator Author

nick-mobilecoin commented Oct 11, 2023

That clippy (beta) build is non blocking. I'm a bit torn on the beta builds, this isn't the first time it's cropped up because downstream is chaning, at the same time if we don't keep up on it then stable will start to fail...

Also fixed in, #428

@nick-mobilecoin nick-mobilecoin merged commit 90d236e into main Oct 11, 2023
28 of 29 checks passed
@nick-mobilecoin nick-mobilecoin deleted the nick/remove-trailing-null-in-json branch October 11, 2023 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M PRs with less than 250 lines of changes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants