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

eth.accounts.signTransaction method fixed #3141

Merged
merged 15 commits into from Oct 21, 2019
Merged

Conversation

nivida
Copy link
Contributor

@nivida nivida commented Oct 17, 2019

The new ethereumjs-tx package requires additional parameters.

@nivida nivida added Bug Addressing a bug In Progress Currently being worked on 1.x 1.0 related issues labels Oct 17, 2019
@coveralls
Copy link

coveralls commented Oct 17, 2019

Coverage Status

Coverage decreased (-0.4%) to 84.005% when pulling 06cd816 on issue/new-signing-parameters into cf96133 on 1.x.

@nivida nivida removed the In Progress Currently being worked on label Oct 17, 2019
@nivida nivida requested a review from cgewecke October 17, 2019 10:27
Copy link
Collaborator

@cgewecke cgewecke left a comment

Choose a reason for hiding this comment

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

This LGTM although it seems like it would break current expectations for Ropsten etc - e.g. that accounts.signTransaction can be used with a non-mainnet chain without any special configuration.

@nivida Per your idea in chat have added some logic to automatically generate an ethereumjs-common options object when no hardfork, chain or common is specified.

That's in PR targeting this PR at #3143. If you have a chance could you check that out and advise?

nivida and others added 7 commits October 19, 2019 12:47
* Auto fetch tx signing option values when not set by user

* public api simplified if someone wants to pass custom chain configuration (ethereumjs-common)

* default properties added (chain, hardfork, and common) and related types updated
…ted in the Method class of the web3-core-method module
nachomazzara pushed a commit to nachomazzara/web3.js that referenced this pull request Jun 4, 2020
* signTransaction updated, getId method in net module, and e2e signTransaction method updated

* types and documentation for accounts.signTransaction updated

* example for custom common added

* CHANGELOG.md updated and url added to accounts.signTransaction documentation

* error msg improved

* web3-eth sendTransaction documentation updated

* parameter validation updated for accounts.signTransaction method

* Auto fetch tx signing option values when not set by user (web3#3143)

* public api simplified if someone wants to pass custom chain configuration (ethereumjs-common)

* default properties added (chain, hardfork, and common) and related types updated

* documentation updated for new default properties

* typo fixed in docs and conditions for the new default properties updated in the Method class of the web3-core-method module

* funcDocs fixed in utils and missing option properties added in the web3-eth-contract module
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants