Skip to content

Commit

Permalink
docs: Fix example of tx usage (#5402)
Browse files Browse the repository at this point in the history
* docs: Fix example of tx usage

* chore: update changelog

* Fix changelog

* Add example entry back

Co-authored-by: Nikos Iliakis <nikoulai@users.noreply.github.com>
Co-authored-by: Oleksii Kosynskyi <oleksii.kosynskyi@gmail.com>
Co-authored-by: Junaid <86780488+jdevcs@users.noreply.github.com>
  • Loading branch information
4 people committed Sep 7, 2022
1 parent 1052540 commit f616e9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -590,6 +590,8 @@ Released with 1.0.0-beta.37 code base.
### Changed
- Updated `sha3` and `sha3Raw` type definition to accept `Buffer`
- Removing legacy field in lerna.json (#5403)
- Correct `eth_sendSignedTransaction` code example (#5402)


### Fixed
- Browser builds support polyfills (#5031) (#5053) (#4659) (#4767)
Expand Down
4 changes: 2 additions & 2 deletions docs/web3-eth.rst
Expand Up @@ -1666,9 +1666,9 @@ Example
}
var tx = new Tx(rawTx, {'chain':'ropsten'});
tx.sign(privateKey);
var signedTx = tx.sign(privateKey);
var serializedTx = tx.serialize();
var serializedTx = signedTx.serialize();
// console.log(serializedTx.toString('hex'));
// 0xf889808609184e72a00082271094000000000000000000000000000000000000000080a47f74657374320000000000000000000000000000000000000000000000000000006000571ca08a8bbf888cfa37bbf0bb965423625641fc956967b81d12e23709cead01446075a01ce999b56a8a88504be365442ea61239198e23d1fce7d00fcfc5cd3b44b7215f
Expand Down

0 comments on commit f616e9f

Please sign in to comment.