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

Commit 1a02a98

Browse files
authored
Merge branch '1.0' into readme-fix
2 parents c9ab36b + 18eb61e commit 1a02a98

File tree

11 files changed

+1011
-139
lines changed

11 files changed

+1011
-139
lines changed

docs/web3-eth-accounts.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Returns
163163
- ``s`` - ``String``: Next 32 bytes of the signature
164164
- ``v`` - ``String``: Recovery value + 27
165165
- ``rawTransaction`` - ``String``: The RLP encoded transaction, ready to be send using :ref:`web3.eth.sendSignedTransaction <eth-sendsignedtransaction>`.
166-
166+
- ``transactionHash`` - ``String``: The transaction hash for the RLP encoded transaction.
167167

168168
-------
169169
Example
@@ -182,7 +182,8 @@ Example
182182
v: '0x25',
183183
r: '0xc9cf86333bcb065d140032ecaab5d9281bde80f21b9687b3e94161de42d51895',
184184
s: '0x727a108a0b8d101465414033c3f705a9c7b826e596766046ee1183dbc8aeaa68',
185-
rawTransaction: '0xf869808504e3b29200831e848094f0109fc8df283027b6285cc889f5aa624eac1f55843b9aca008025a0c9cf86333bcb065d140032ecaab5d9281bde80f21b9687b3e94161de42d51895a0727a108a0b8d101465414033c3f705a9c7b826e596766046ee1183dbc8aeaa68'
185+
rawTransaction: '0xf869808504e3b29200831e848094f0109fc8df283027b6285cc889f5aa624eac1f55843b9aca008025a0c9cf86333bcb065d140032ecaab5d9281bde80f21b9687b3e94161de42d51895a0727a108a0b8d101465414033c3f705a9c7b826e596766046ee1183dbc8aeaa68',
186+
transactionHash: '0xde8db924885b0803d2edc335f745b2b8750c8848744905684c20b987443a9593'
186187
}
187188
188189
web3.eth.accounts.signTransaction({
@@ -199,7 +200,8 @@ Example
199200
r: '0x9ebb6ca057a0535d6186462bc0b465b561c94a295bdb0621fc19208ab149a9c',
200201
s: '0x440ffd775ce91a833ab410777204d5341a6f9fa91216a6f3ee2c051fea6a0428',
201202
v: '0x25',
202-
rawTransaction: '0xf86a8086d55698372431831e848094f0109fc8df283027b6285cc889f5aa624eac1f55843b9aca008025a009ebb6ca057a0535d6186462bc0b465b561c94a295bdb0621fc19208ab149a9ca0440ffd775ce91a833ab410777204d5341a6f9fa91216a6f3ee2c051fea6a0428'
203+
rawTransaction: '0xf86a8086d55698372431831e848094f0109fc8df283027b6285cc889f5aa624eac1f55843b9aca008025a009ebb6ca057a0535d6186462bc0b465b561c94a295bdb0621fc19208ab149a9ca0440ffd775ce91a833ab410777204d5341a6f9fa91216a6f3ee2c051fea6a0428',
204+
transactionHash: '0xd8f64a42b57be0d565f385378db2f6bf324ce14a594afc05de90436e9ce01f60'
203205
}
204206
205207

packages/web3-core/types/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export interface SignedTransaction {
7070
s: string;
7171
v: string;
7272
rawTransaction?: string;
73+
transactionHash?: string;
7374
}
7475

7576
export interface Web3ModuleOptions {

packages/web3-eth-contract/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export ContractModuleFactory from './factories/ContractModuleFactory';
4646
* @constructor
4747
*/
4848
export function Contract(provider, abi, accounts, address, options) {
49-
return new ContractModuleFactory(Utils, formatters, new AbiCoder(), accounts).createContract(
49+
return new ContractModuleFactory(Utils, formatters, new AbiCoder()).createContract(
5050
provider,
5151
accounts,
5252
abi,

0 commit comments

Comments
 (0)