-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Conversation
…saction method updated
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.
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?
* 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
…b3.js into issue/new-signing-parameters
…ted in the Method class of the web3-core-method module
…b3-eth-contract module
* 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
The new ethereumjs-tx package requires additional parameters.