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

Auto fetch tx signing option values when not set by user #3143

Merged
merged 11 commits into from
Oct 21, 2019
Merged

Auto fetch tx signing option values when not set by user #3143

merged 11 commits into from
Oct 21, 2019

Conversation

cgewecke
Copy link
Collaborator

@cgewecke cgewecke commented Oct 18, 2019

NB: MERGE TARGET is #3141

Per @nivida's idea from a chat, adds auto-fetching of custom network details when using eth.accounts.signTransaction. Idea is to extend #3141 so its new behavior does not require people to add ethereumjs-custom options when using non-mainnet chains.

Adds tests for:

  • signTransaction without specifying any transaction signing options
  • some error cases

[Edit - WIP while fixing the unit mocks....]

test/eth.sendTransaction.js Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Oct 18, 2019

Coverage Status

Coverage decreased (-0.3%) to 84.005% when pulling e1be1f3 on cgewecke:issue/signing-params-autofetch into 97735e2 on ethereum:issue/new-signing-parameters.

@cgewecke cgewecke requested a review from nivida October 18, 2019 07:26
@nivida nivida added 1.x 1.0 related issues Enhancement Includes improvements or optimizations labels Oct 18, 2019
Copy link
Contributor

@nivida nivida left a comment

Choose a reason for hiding this comment

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

If there is no veto from your side will I do the commented changes today or tomorrow (Sunday)

packages/web3-eth-accounts/src/index.js Outdated Show resolved Hide resolved
packages/web3-eth-accounts/src/index.js Show resolved Hide resolved
packages/web3-eth-accounts/src/index.js Show resolved Hide resolved
test/eth.accounts.signTransaction.js Show resolved Hide resolved
@nivida nivida merged commit f5dd9ad into web3:issue/new-signing-parameters Oct 21, 2019
nivida added a commit that referenced this pull request Oct 21, 2019
* 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 (#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
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 Enhancement Includes improvements or optimizations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants