Skip to content

Commit

Permalink
privatKey check in TransactionSigner fixed and link in documentation …
Browse files Browse the repository at this point in the history
…updated
  • Loading branch information
Samuel Furter committed Feb 27, 2019
1 parent 5f4b969 commit 13eb73d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/include_package-core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Module Options

:ref:`transactionPollingTimeout <web3-module-transactionpollingtimeout>`

:ref:`transactionPollingTimeout <web3-module-transactionpollingtimeout>`
:ref:`transactionSigner <web3-module-transactionSigner>`

-------
Example
Expand Down
2 changes: 1 addition & 1 deletion packages/web3-eth/src/signers/TransactionSigner.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class TransactionSigner {
throw new Error('No privateKey given to the TransactionSigner.');
}

if (!privateKey.startsWith('0x')) {
if (privateKey.startsWith('0x')) {
privateKey = privateKey.substring(2);
}

Expand Down

0 comments on commit 13eb73d

Please sign in to comment.