Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit f616e9f

Browse files
acolytec3nikoulaiavkosjdevcs
authored
docs: Fix example of tx usage (#5402)
* docs: Fix example of tx usage * chore: update changelog * Fix changelog * Add example entry back Co-authored-by: Nikos Iliakis <[email protected]> Co-authored-by: Oleksii Kosynskyi <[email protected]> Co-authored-by: Junaid <[email protected]>
1 parent 1052540 commit f616e9f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,8 @@ Released with 1.0.0-beta.37 code base.
590590
### Changed
591591
- Updated `sha3` and `sha3Raw` type definition to accept `Buffer`
592592
- Removing legacy field in lerna.json (#5403)
593+
- Correct `eth_sendSignedTransaction` code example (#5402)
594+
593595

594596
### Fixed
595597
- Browser builds support polyfills (#5031) (#5053) (#4659) (#4767)

docs/web3-eth.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1666,9 +1666,9 @@ Example
16661666
}
16671667
16681668
var tx = new Tx(rawTx, {'chain':'ropsten'});
1669-
tx.sign(privateKey);
1669+
var signedTx = tx.sign(privateKey);
16701670
1671-
var serializedTx = tx.serialize();
1671+
var serializedTx = signedTx.serialize();
16721672
16731673
// console.log(serializedTx.toString('hex'));
16741674
// 0xf889808609184e72a00082271094000000000000000000000000000000000000000080a47f74657374320000000000000000000000000000000000000000000000000000006000571ca08a8bbf888cfa37bbf0bb965423625641fc956967b81d12e23709cead01446075a01ce999b56a8a88504be365442ea61239198e23d1fce7d00fcfc5cd3b44b7215f

0 commit comments

Comments
 (0)