-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Format transaction.type to hex. Add empty accessList is tx.type === '0x1'
#5979
Conversation
Pull Request Test Coverage Report for Build 4585263643Warning: 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 |
transaction.type to hex. Add empty accessList is `tx.type === '0x1'transaction.type to hex. Add empty accessList is tx.type === '0x1'
jdevcs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, except tiny refactoring.
Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com>
@jdevcs Merged, thank you |
CHANGELOG.md
Outdated
| ### Changed | ||
|
|
||
| - `transaction.type` is now formatted to a hex string before being send to provider (#5979) | ||
| - When sending a transaction, if `transaction.type === '0x1' && transaction.accessList === []`, then `transaction.accessList` is set to `[]` (#5979) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean
transaction.type === '0x1' && transaction.accessList is undefined then transaction.accessList is set to []
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated via this commit, thank you
Pull Request Test Coverage Report for Build 4600732589Warning: 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 |
transaction.typeis now formatted to a hex string before being sent to providertransaction.type === '0x1' && transaction.accessList === 'undefined', thentransaction.accessListis set to[]Added test cases for Steps to Reproduce examples from here. With these changes everything is formatted as expected, however, we do not throw an error for
tx.typeexceededing bounds of0x0to0x7fcloses #4597