1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

set min gas fee 30 gwei on priority fees for polygon and mumbai as well (#1736)

* set min gas fee 30 gwei on priority fees for polygon and  mumbai as well

* Release 3.0.1-next.0
This commit is contained in:
Bogdan Fazakas 2023-06-06 15:58:54 +02:00 committed by GitHub
parent 543f71f7cd
commit 0c60d9bbd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

View File

@ -4,9 +4,17 @@ All notable changes to this project will be documented in this file. Dates are d
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v3.0.1-next.0](https://github.com/oceanprotocol/ocean.js/compare/v3.0.0...v3.0.1-next.0)
- Merge 04deabccd3ffbc8d3620e42a8b1bc4a2d5019e54 into 543f71f7cda1b3d0099cc26975d34b89bead7452 [`c33663c`](https://github.com/oceanprotocol/ocean.js/commit/c33663cfdbf501c407d3e1e17f56b17761f9e556)
- set min gas fee 30 gwei on priority fees for polygon and mumbai as well [`04deabc`](https://github.com/oceanprotocol/ocean.js/commit/04deabccd3ffbc8d3620e42a8b1bc4a2d5019e54)
#### [v3.0.0](https://github.com/oceanprotocol/ocean.js/compare/v3.0.0-next.5...v3.0.0)
> 29 May 2023
- Features/ethers [`#1696`](https://github.com/oceanprotocol/ocean.js/pull/1696)
- Release 3.0.0 [`543f71f`](https://github.com/oceanprotocol/ocean.js/commit/543f71f7cda1b3d0099cc26975d34b89bead7452)
#### [v3.0.0-next.5](https://github.com/oceanprotocol/ocean.js/compare/v3.0.0-next.4...v3.0.0-next.5)

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@oceanprotocol/lib",
"version": "3.0.0",
"version": "3.0.1-next.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@oceanprotocol/lib",
"version": "3.0.0",
"version": "3.0.1-next.0",
"license": "Apache-2.0",
"dependencies": {
"@oceanprotocol/contracts": "^1.1.8",

View File

@ -1,7 +1,7 @@
{
"name": "@oceanprotocol/lib",
"source": "./src/index.ts",
"version": "3.0.0",
"version": "3.0.1-next.0",
"description": "JavaScript client library for Ocean Protocol",
"main": "./dist/lib.js",
"umd:main": "dist/lib.umd.js",

View File

@ -130,7 +130,11 @@ export async function sendTx(
).toString()
}
overrides = {
maxPriorityFeePerGas: aggressiveFeePriorityFeePerGas,
maxPriorityFeePerGas:
(chainId === MUMBAI_NETWORK_ID || chainId === POLYGON_NETWORK_ID) &&
Number(aggressiveFeePriorityFeePerGas) < MIN_GAS_FEE_POLYGON
? MIN_GAS_FEE_POLYGON
: Number(aggressiveFeePriorityFeePerGas),
maxFeePerGas:
(chainId === MUMBAI_NETWORK_ID || chainId === POLYGON_NETWORK_ID) &&
Number(aggressiveFeePerGas) < MIN_GAS_FEE_POLYGON