Skip to content

Commit

Permalink
Matic - use fast gas price instead of fastest
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Sramko committed Oct 1, 2021
1 parent a161678 commit 95fea8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "1.26.6",
"version": "1.26.8",
"description": "Tatum API client allows browsers and Node.js clients to interact with Tatum API.",
"main": "dist/src/index.js",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
2 changes: 1 addition & 1 deletion src/transaction/polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import {obtainCustodialAddressType} from '../wallet';
*/
export const polygonGetGasPriceInWei = async () => {
const {data} = await axios.get('https://gasstation-mainnet.matic.network')
return Web3.utils.toWei(`${Math.ceil(data.fastest / 10)}`, 'gwei')
return Web3.utils.toWei(`${Math.ceil(data.fast / 10)}`, 'gwei');
}

const prepareGeneralTx = async (client: Web3, testnet: boolean, fromPrivateKey?: string, signatureId?: string, to?: string, amount?: string, nonce?: number,
Expand Down

0 comments on commit 95fea8a

Please sign in to comment.