We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8931771 commit 99f0b55Copy full SHA for 99f0b55
Assets/Thirdweb/Core/Scripts/Utils.cs
@@ -501,7 +501,14 @@ public async static Task<GasPriceParameters> GetGasPriceAsync(BigInteger chainId
501
{
502
if (chainId == 137 || chainId == 80001)
503
504
- return await GetPolygonGasPriceParameters((int)chainId);
+ try
505
+ {
506
+ return await GetPolygonGasPriceParameters((int)chainId);
507
+ }
508
+ catch (System.Exception e)
509
510
+ ThirdwebDebug.LogWarning($"Failed to get gas price from Polygon gas station, using default method: {e.Message}");
511
512
}
513
514
var web3 = GetWeb3(chainId);
0 commit comments