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

Update block hex to be 8 bytes in length #156

Merged
merged 1 commit into from
Jun 3, 2022
Merged

Conversation

Nana-EC
Copy link
Collaborator

@Nana-EC Nana-EC commented Jun 3, 2022

Signed-off-by: Nana-EC [email protected]

Description:
Our current implementation returns 0x0 for nonce on a block response.
However the expectation is an 8byte

  • Update eth.ts to use 0x0000000000000000 for nonce
  • Update tests

Related issue(s):

Fixes #149

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@Nana-EC Nana-EC self-assigned this Jun 3, 2022
@Nana-EC Nana-EC added bug Something isn't working P1 labels Jun 3, 2022
@sonarcloud
Copy link

sonarcloud bot commented Jun 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Nana-EC Nana-EC added this to the 0.2.0 milestone Jun 3, 2022
@Nana-EC Nana-EC requested a review from rbair23 June 3, 2022 22:14
@codecov-commenter
Copy link

Codecov Report

Merging #156 (2156ad5) into main (10dca21) will increase coverage by 0.06%.
The diff coverage is 100.00%.

❗ Current head 2156ad5 differs from pull request most recent head bfbce2d. Consider uploading reports for the commit bfbce2d to get more accurate results

@@            Coverage Diff             @@
##             main     #156      +/-   ##
==========================================
+ Coverage   66.39%   66.46%   +0.06%     
==========================================
  Files           4        4              
  Lines         491      492       +1     
  Branches       66       66              
==========================================
+ Hits          326      327       +1     
  Misses        148      148              
  Partials       17       17              
Impacted Files Coverage Δ
packages/relay/src/lib/eth.ts 51.42% <100.00%> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10dca21...bfbce2d. Read the comment docs.

@Nana-EC Nana-EC merged commit 139bc12 into main Jun 3, 2022
@Nana-EC Nana-EC deleted the 149-block-hash-not-8bytes branch June 3, 2022 22:23
Nana-EC added a commit that referenced this pull request Jun 3, 2022
Our current implementation returns `0x0` for nonce on a block response.
However the expectation is an 8byte

- Update `eth.ts` to use `0x0000000000000000` for nonce
- Update tests

Signed-off-by: Nana-EC <[email protected]>
Nana-EC added a commit that referenced this pull request Jun 3, 2022
Update block hex to be 8 bytes in length (#156)

Our current implementation returns `0x0` for nonce on a block response.
However the expectation is an 8byte

- Update `eth.ts` to use `0x0000000000000000` for nonce
- Update tests

Signed-off-by: Nana-EC <[email protected]>
possible-panther pushed a commit that referenced this pull request Jun 8, 2022
Our current implementation returns `0x0` for nonce on a block response.
However the expectation is an 8byte

- Update `eth.ts` to use `0x0000000000000000` for nonce
- Update tests

Signed-off-by: Nana-EC <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid block nonce
3 participants