From accb85268c92fa894e769ec1dca322e117d33e5f Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 23 Aug 2021 23:02:32 -0300 Subject: [PATCH] Removed temporary code for better errors needed until Alchemy added EIP-1559 support (#1893). --- packages/providers/src.ts/alchemy-provider.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/providers/src.ts/alchemy-provider.ts b/packages/providers/src.ts/alchemy-provider.ts index 9b27dd677..62ec376e5 100644 --- a/packages/providers/src.ts/alchemy-provider.ts +++ b/packages/providers/src.ts/alchemy-provider.ts @@ -92,17 +92,6 @@ export class AlchemyProvider extends UrlJsonRpcProvider { }; } - async perform(method: string, params: any): Promise { - if ((method === "estimateGas" && params.transaction.type === 2) || (method === "sendTransaction" && params.signedTransaction.substring(0, 4) === "0x02")) { - logger.throwError("AlchemyProvider does not currently support EIP-1559", Logger.errors.UNSUPPORTED_OPERATION, { - operation: method, - transaction: params.transaction - }); - } - - return super.perform(method, params); - } - isCommunityResource(): boolean { return (this.apiKey === defaultApiKey); }