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

Simplify handling hex state ID #8890

Merged
merged 2 commits into from
May 17, 2021
Merged

Simplify handling hex state ID #8890

merged 2 commits into from
May 17, 2021

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented May 13, 2021

What type of PR is this?

Other

What does this PR do? Why is it needed?

Changes the way state API endpoints treat incoming hex values of state ID. Currently they assume hex values contain the 0x prefix, but since we receive a byte array it's more reasonable to send only the state ID. This change will make state endpoint behave in the same way as block endpoints.

The 0x prefix will be removed by the HTTP proxy server before forwarding the request.

Which issues(s) does this PR fix?

N/A

Other notes for review

N/A

@rkapka rkapka added the API Api related tasks label May 13, 2021
@rkapka rkapka requested a review from a team as a code owner May 13, 2021 08:44
@codecov
Copy link

codecov bot commented May 13, 2021

Codecov Report

Merging #8890 (f86638a) into develop (e6a1d5b) will increase coverage by 0.17%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop    #8890      +/-   ##
===========================================
+ Coverage    60.58%   60.75%   +0.17%     
===========================================
  Files          527      527              
  Lines        37160    37154       -6     
===========================================
+ Hits         22513    22574      +61     
+ Misses       11417    11349      -68     
- Partials      3230     3231       +1     

@rkapka rkapka merged commit e254e8e into develop May 17, 2021
@delete-merged-branch delete-merged-branch bot deleted the simplify-hex-state branch May 17, 2021 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants