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

Commit d495dc5

Browse files
committed
Merge branch '1.x' into 5153/Number-can-only-safely-store-53-bits
2 parents 183eba8 + c034b8d commit d495dc5

File tree

6 files changed

+2364
-5381
lines changed

6 files changed

+2364
-5381
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,16 @@ Released with 1.0.0-beta.37 code base.
578578

579579
## [1.7.5]
580580

581+
### Added
582+
- Documentation details about `maxFeePerGas` and `maxPriorityFeePerGas` (#5121)
583+
581584
### Fixed
582585

583-
- Fix typos in web3-eth-accounts.rst & TESTING.md (#5047)
586+
- Fix typos in web3-eth-accounts.rst & TESTING.md (#5047)
587+
- Improve README.md & Fix typos (#4848)
584588
- Fix `hexToNumber` supporting more than 53 bits numbers (#5153)
589+
590+
### Security
591+
- Updated `got` lib version and fixed other libs using npm audit fix
592+
593+

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<p align="center">
2-
<img src="assets/logo/web3js.jpg" width="200" alt="web3.js" />
1+
<p style="text-align: center;">
2+
<img src="assets/logo/web3js.jpg" width="200" alt="web3.js">
33
</p>
44

55
# web3.js - Ethereum JavaScript API
@@ -56,10 +56,10 @@ UNPKG:
5656
```js
5757
// In Node.js
5858
const Web3 = require('web3');
59-
60-
let web3 = new Web3('ws://localhost:8546');
59+
const web3 = new Web3('ws://localhost:8546');
6160
console.log(web3);
62-
> {
61+
// Output
62+
{
6363
eth: ... ,
6464
shh: ... ,
6565
utils: ...,
@@ -227,7 +227,7 @@ global.process = {
227227
228228
If you are using Ionic/Angular at a version >5 you may run into a build error in which modules `crypto` and `stream` are `undefined`
229229
230-
a work around for this is to go into your node-modules and at `/angular-cli-files/models/webpack-configs/browser.js` change the `node: false` to `node: {crypto: true, stream: true}` as mentioned [here](https://github.com/ethereum/web3.js/issues/2260#issuecomment-458519127)
230+
a workaround for this is to go into your node-modules and at `/angular-cli-files/models/webpack-configs/browser.js` change the `node: false` to `node: {crypto: true, stream: true}` as mentioned [here](https://github.com/ethereum/web3.js/issues/2260#issuecomment-458519127)
231231
232232
Another variation of this problem was an [issue opned on angular-cli](https://github.com/angular/angular-cli/issues/1548)
233233

docs/web3-eth-accounts.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ Parameters
156156
- ``data`` - ``String``: (optional) The call data of the transaction, can be empty for simple value transfers.
157157
- ``value`` - ``String``: (optional) The value of the transaction in wei.
158158
- ``gasPrice`` - ``String``: (optional) The gas price set by this transaction, if empty, it will use :ref:`web3.eth.getGasPrice() <eth-gasprice>`
159+
- ``maxFeePerGas`` - ``Number|String|BN``: (optional, defaulted to ``(2 * block.baseFeePerGas) + maxPriorityFeePerGas``) The maximum fee per gas that the transaction is willing to pay in total. If ``gasPrice`` is also set, ``maxFeePerGas`` will be set equal to it, regardless of this value.
160+
- ``maxPriorityFeePerGas`` - ``Number|String|BN`` (optional, defaulted to ``2.5 Gwei``) The maximum fee per gas to give miners to incentivize them to include the transaction (Priority fee). If ``gasPrice`` is also set, ``maxPriorityFeePerGas`` will be set equal to it, regardless of this value.
159161
- ``gas`` - ``String``: The gas provided by the transaction.
160162
- ``chain`` - ``String``: (optional) Defaults to ``mainnet``.
161163
- ``hardfork`` - ``String``: (optional) Defaults to ``berlin``.

0 commit comments

Comments
 (0)