Skip to content

Commit accb852

Browse files
committed
Removed temporary code for better errors needed until Alchemy added EIP-1559 support (ethers-io#1893).
1 parent f0b3bc3 commit accb852

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/providers/src.ts/alchemy-provider.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,6 @@ export class AlchemyProvider extends UrlJsonRpcProvider {
9292
};
9393
}
9494

95-
async perform(method: string, params: any): Promise<any> {
96-
if ((method === "estimateGas" && params.transaction.type === 2) || (method === "sendTransaction" && params.signedTransaction.substring(0, 4) === "0x02")) {
97-
logger.throwError("AlchemyProvider does not currently support EIP-1559", Logger.errors.UNSUPPORTED_OPERATION, {
98-
operation: method,
99-
transaction: params.transaction
100-
});
101-
}
102-
103-
return super.perform(method, params);
104-
}
105-
10695
isCommunityResource(): boolean {
10796
return (this.apiKey === defaultApiKey);
10897
}

0 commit comments

Comments
 (0)