@coti-io/coti-wallet-plugin 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1523,13 +1523,7 @@ var init_podPortalFees = __esm({
1523
1523
  return BigInt(gasPriceHex);
1524
1524
  };
1525
1525
  resolvePodTxGasPrice = async (provider) => {
1526
- let base;
1527
- try {
1528
- const feeData = await provider.getFeeData();
1529
- base = feeData.gasPrice ?? await getPodGasPrice(provider);
1530
- } catch {
1531
- base = await getPodGasPrice(provider);
1532
- }
1526
+ const base = await getPodGasPrice(provider);
1533
1527
  return base * POD_GAS_PRICE_BUFFER_BPS / 1000n;
1534
1528
  };
1535
1529
  getSepoliaGasPrice = resolvePodTxGasPrice;
@@ -1715,8 +1709,8 @@ var init_podPortalFees = __esm({
1715
1709
  let supportsEip1559 = false;
1716
1710
  if (provider) {
1717
1711
  try {
1718
- const feeData = await provider.getFeeData();
1719
- supportsEip1559 = feeData.maxFeePerGas != null && feeData.maxPriorityFeePerGas != null;
1712
+ const block = await provider.getBlock("latest");
1713
+ supportsEip1559 = block?.baseFeePerGas != null;
1720
1714
  } catch {
1721
1715
  supportsEip1559 = false;
1722
1716
  }