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

Don't default type = 0x0 for eth_sendTransaction and eth_sendRawTransaction #4241

Merged
merged 10 commits into from Aug 15, 2021

Conversation

spacesailor24
Copy link
Contributor

@spacesailor24 spacesailor24 commented Aug 14, 2021

Previous to this PR, eth_sendTransaction and eth_sendRawTransaction would default to include type = 0x0 when creating the tx object. Now, type will not be defaulted if EIP-1559 or EIP-2930 params aren't passed

Addresses issues mentioned here

Supersedes #4240

@spacesailor24 spacesailor24 added Bug Addressing a bug 1.x 1.0 related issues P0 Critical severity bugs labels Aug 14, 2021
@render
Copy link

render bot commented Aug 14, 2021

@coveralls
Copy link

coveralls commented Aug 14, 2021

Pull Request Test Coverage Report for Build 1131591968

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • 36 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.4%) to 72.908%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/web3-eth-accounts/src/index.js 0 1 0.0%
Files with Coverage Reduction New Missed Lines %
packages/web3-core-method/lib/index.js 11 94.01%
packages/web3-eth-accounts/lib/index.js 25 85.89%
Totals Coverage Status
Change from base Build 1102626574: 0.4%
Covered Lines: 3324
Relevant Lines: 4310

💛 - Coveralls

@spacesailor24 spacesailor24 marked this pull request as ready for review August 14, 2021 23:03
@lgtm-com
Copy link

lgtm-com bot commented Aug 15, 2021

This pull request introduces 1 alert when merging fcb8a56 into b383a8e - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Copy link
Contributor

@GregTheGreek GregTheGreek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, let's get this rc out 🚀🚀

@spacesailor24 spacesailor24 merged commit e1556ff into 1.x Aug 15, 2021
@spacesailor24 spacesailor24 deleted the wyatt/metamask-type-fix branch August 15, 2021 00:44
@spacesailor24 spacesailor24 mentioned this pull request Aug 15, 2021
jdevcs added a commit that referenced this pull request Aug 19, 2021
* fixed sec issue libs

* karma upgrade for lib sec issue fix

* upgrade lerna for sec issue fix

* change log

* removed node 8 web31x build tests

* included node 14 and removed node 10 buildtestruns

* Don't default type = 0x0 for eth_sendTransaction and eth_sendRawTransaction (#4241)

* Remove type = 0x0 default

* Update gasPrice short circuit check

* Update tests - remove type: 0x0

* Update CHANGELOG

* Apply patch fix to web3-eth-accounts

* Remove tx type defaulting

* update CHANGELOG

* update failing test

* Remove unused import

* Add quick check that user can pass type, and it's retained

* Release 1.5.2 (#4242)

* Update CHANGELOG

* npm i && npm run build

* v1.5.2-rc.0

* v1.5.2

* Update CHANGELOG.md

Co-authored-by: Wyatt Barnes <wyatt@writerof.software>

* Update CHANGELOG.md

Co-authored-by: Wyatt Barnes <wyatt@writerof.software>

* Update CHANGELOG.md

Co-authored-by: Wyatt Barnes <wyatt@writerof.software>

* changelog update

* fixed sec issue libs

* karma upgrade for lib sec issue fix

* upgrade lerna for sec issue fix

* change log

* removed node 8 web31x build tests

* included node 14 and removed node 10 buildtestruns

* Update CHANGELOG.md

Co-authored-by: Wyatt Barnes <wyatt@writerof.software>

* Update CHANGELOG.md

Co-authored-by: Wyatt Barnes <wyatt@writerof.software>

* Update CHANGELOG.md

Co-authored-by: Wyatt Barnes <wyatt@writerof.software>

* changelog update

* packagelock update after rebase merge conflicts

* min node is 11

* package lock fix

Co-authored-by: jdevcs <junaid@chainsafe.io>
Co-authored-by: Wyatt Barnes <wyatt@writerof.software>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.0 related issues Bug Addressing a bug P0 Critical severity bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants