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
adding berlin tx support #4109
Merged
Merged
adding berlin tx support #4109
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5ccf921
add berlin tx support
GregTheGreek d965f2e
update install locations
GregTheGreek 520474e
update package name in comment
GregTheGreek 27f53e8
fix existing tests to support new tx sigining format
GregTheGreek a049e06
remove build
GregTheGreek b005b0a
remove old test case
GregTheGreek 8cf3ef3
use latest ethereumjs/tx
GregTheGreek ef80f15
bump deps and fix test
GregTheGreek 8031f08
update hashes
GregTheGreek 018e4a8
fix messageHash, decoding bug
GregTheGreek 53d2bb0
fix tests
GregTheGreek f94e107
add hack
GregTheGreek 3990297
adding eip2930 and common object
e9d746f
fix lint updating package-lock
3194bc3
fix berlin tx signing and recovery
GregTheGreek 39ff2c0
updating ethereumjs/tx package
5fec5ff
updating checksum
61646e4
removing helper.js
11f1ff7
updating changelog and docs
298f5b5
fixing typo
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix messageHash, decoding bug
- Loading branch information
commit 018e4a827feed1d4ad9878b2c287c5acf24867e9
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| var RLP = require("eth-lib/lib/rlp"); // jshint ignore:line | ||
|
|
||
| function decodeUnknownTxType(rawTx, txOptions = {}) { | ||
| const stripped = rawTx.slice(2); | ||
| const data = Buffer.from(stripped, "hex") | ||
| if (data[0] <= 0x7f) { | ||
| // It is an EIP-2718 Typed Transaction | ||
| return { | ||
| values: RLP.decode("0x" + stripped.slice(2)), | ||
| isTyped: true | ||
| }; | ||
| } else { | ||
| return { | ||
| values: RLP.decode(rawTx), | ||
| isTyped: false | ||
| }; | ||
| } | ||
| } | ||
|
|
||
| module.exports = { | ||
| decodeUnknownTxType, | ||
| } | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.