This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Nikos/5071/investigate signtransaction testcases #5377
Merged
nikoulai
merged 6 commits into
1.x
from
nikos/5071/investigate-signtransaction-testcases
Sep 6, 2022
Merged
Nikos/5071/investigate signtransaction testcases #5377
nikoulai
merged 6 commits into
1.x
from
nikos/5071/investigate-signtransaction-testcases
Sep 6, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your Render PR Server URL is https://web3-js-pr-5377.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-cc33b17ho1ks6o3hkrtg. |
Pull Request Test Coverage Report for Build 2971408301Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
09f5e2f
to
d80552f
Compare
bigints casted into strings should be fine though no? I think the issue is that some part where the bigint will be turned into a number, thats when we get smaller values. If thats the issue it wont be breaking |
avkos
approved these changes
Aug 29, 2022
jdevcs
reviewed
Aug 31, 2022
jdevcs
approved these changes
Sep 6, 2022
This was referenced Oct 23, 2022
This was referenced Jan 2, 2023
This was referenced Feb 15, 2023
This was referenced Feb 15, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
#5071 part 1: r and v values in testcases don't align with
signTransaction
results.In two testcases r and v were wrong (they were even the same between the tests).
signTransaction
returns the right values (cross checked with external libraries, too)Discussion:
r and s are
bigint
s inethereumjs
and we cast them to strings. This leads to some values with smaller values to be of smaller length when casted to string (missing leading 0s). I think, we should prepend them, but, this could be a breaking change for some users and better leave them as they are.