Removed temporary code for better errors needed until Alchemy added EIP-1559 support (#1893).

This commit is contained in:
Richard Moore 2021-08-23 23:02:32 -03:00
parent f0b3bc32d5
commit accb85268c
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651

@ -92,17 +92,6 @@ export class AlchemyProvider extends UrlJsonRpcProvider {
};
}
async perform(method: string, params: any): Promise<any> {
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);
}