diff --git a/CHANGELOG.md b/CHANGELOG.md index d79a9275..7e61f2ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package-lock.json b/package-lock.json index 2c9c5570..90734e20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 5d34d990..fe2e582b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/utils/ContractUtils.ts b/src/utils/ContractUtils.ts index bd5d738e..e9312486 100644 --- a/src/utils/ContractUtils.ts +++ b/src/utils/ContractUtils.ts @@ -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