@coti-io/coti-wallet-plugin 0.2.4 → 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.d.mts CHANGED
@@ -568,8 +568,12 @@ type PortalFeeQuote = {
568
568
  declare const getPodGasPrice: (provider: ethers.BrowserProvider | ethers.JsonRpcProvider | ethers.Provider) => Promise<bigint>;
569
569
  /**
570
570
  * Gas price for PoD inbox fee estimation and tx send.
571
- * Uses `getFeeData().gasPrice` when available, with a 10% buffer so estimate
572
- * and `tx.gasprice` stay aligned per pod-sdk inbox rules.
571
+ * Uses `eth_gasPrice` only (with a 10% buffer) so estimate and `tx.gasprice`
572
+ * stay aligned per pod-sdk inbox rules.
573
+ *
574
+ * Avoids `provider.getFeeData()` — ethers maps that to
575
+ * `eth_maxPriorityFeePerGas`, which MetaMask rejects (-32601) on the injected
576
+ * provider even when the chain RPC supports the method.
573
577
  */
574
578
  declare const resolvePodTxGasPrice: (provider: ethers.BrowserProvider | ethers.JsonRpcProvider | ethers.Provider) => Promise<bigint>;
575
579
  /** @deprecated Use {@link resolvePodTxGasPrice}. */
package/dist/index.d.ts CHANGED
@@ -568,8 +568,12 @@ type PortalFeeQuote = {
568
568
  declare const getPodGasPrice: (provider: ethers.BrowserProvider | ethers.JsonRpcProvider | ethers.Provider) => Promise<bigint>;
569
569
  /**
570
570
  * Gas price for PoD inbox fee estimation and tx send.
571
- * Uses `getFeeData().gasPrice` when available, with a 10% buffer so estimate
572
- * and `tx.gasprice` stay aligned per pod-sdk inbox rules.
571
+ * Uses `eth_gasPrice` only (with a 10% buffer) so estimate and `tx.gasprice`
572
+ * stay aligned per pod-sdk inbox rules.
573
+ *
574
+ * Avoids `provider.getFeeData()` — ethers maps that to
575
+ * `eth_maxPriorityFeePerGas`, which MetaMask rejects (-32601) on the injected
576
+ * provider even when the chain RPC supports the method.
573
577
  */
574
578
  declare const resolvePodTxGasPrice: (provider: ethers.BrowserProvider | ethers.JsonRpcProvider | ethers.Provider) => Promise<bigint>;
575
579
  /** @deprecated Use {@link resolvePodTxGasPrice}. */