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

Commit 006213d

Browse files
committed
refine
1 parent 6eaaa21 commit 006213d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/docs/guides/web3_config/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ The error types will be one of the following:
221221
- TransactionPollingTimeoutError
222222
```
223223

224-
For example, the error message could be `TransactionRevertInstructionError('Returned error: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes')`. The default value is `false`, and handleRevert is only supported for `sendTransaction` and not for `sendSignedTransaction` at this time.
224+
For example, the error message could be `TransactionRevertInstructionError('Returned error: invalid argument 0: json: cannot unmarshal invalid hex string into Go struct field TransactionArgs.data of type hexutil.Bytes')`. The default value is `false`, and handleRevert is only supported for `sendTransaction` and not for `sendSignedTransaction` for now.
225225

226226
```ts
227227
import { Web3 } from 'web3';
@@ -254,7 +254,7 @@ This `defaultAccount` is used as the default `from` property, if no `from` prope
254254
- myContract.methods.myMethod().send()
255255
```
256256

257-
The default value for `defaultAccount` is `undefined`. It is worth noting that the `defaultAccount` here can be any string, as there is no validation during the config phase.
257+
The default value for `defaultAccount` is `undefined`.
258258

259259
```ts
260260
import { Web3 } from 'web3';
@@ -574,7 +574,7 @@ import { Web3 } from 'web3';
574574

575575
const web3 = new Web3('http://127.0.0.1:7545');
576576

577-
web3.defaultNetworkId = 56;
577+
web3.defaultNetworkId = 1;
578578

579579
console.log(web3.getContextObject().config)
580580
```

0 commit comments

Comments
 (0)