diff --git a/__tests__/account.test.ts b/__tests__/account.test.ts index d29c9fc7e..c633ecebc 100644 --- a/__tests__/account.test.ts +++ b/__tests__/account.test.ts @@ -391,23 +391,6 @@ describe('deploy and test Account', () => { }); describe('fastExecute()', () => { - test('Only Rpc X', async () => { - const provider08 = new RpcProvider({ - nodeUrl: 'dummy', - blockIdentifier: BlockTag.PRE_CONFIRMED, - specVersion: '0.10.0', - }); - const testAccount = new Account({ - provider: provider08, - address: '0x123', - signer: '0x456', - }); - const myCall: Call = { contractAddress: '0x036', entrypoint: 'withdraw', calldata: [] }; - await expect(testAccount.fastExecute(myCall)).rejects.toThrow( - 'Wrong Rpc version in Provider. At least Rpc v0.9 required.' - ); - }); - test('Only provider with PRE_CONFIRMED blockIdentifier', async () => { const providerLatest = new RpcProvider({ nodeUrl: 'dummy', diff --git a/src/account/default.ts b/src/account/default.ts index 08530a582..300a0069c 100644 --- a/src/account/default.ts +++ b/src/account/default.ts @@ -90,7 +90,6 @@ import { assertPaymasterTransactionSafety } from '../utils/paymaster'; import assert from '../utils/assert'; import { defaultDeployer, Deployer } from '../deployer'; import type { TipType } from '../provider/modules/tip'; -import { RPC09 } from '../channel'; export class Account extends Provider implements AccountInterface { public signer: SignerInterface; @@ -365,10 +364,6 @@ export class Account extends Provider implements AccountInterface { transactionsDetail: UniversalDetails = {}, waitDetail: fastWaitForTransactionOptions = {} ): Promise { - assert( - this.channel instanceof RPC09.RpcChannel, - 'Wrong Rpc version in Provider. At least Rpc v0.9 required.' - ); assert( this.channel.blockIdentifier === BlockTag.PRE_CONFIRMED, 'Provider needs to be initialized with `pre_confirmed` blockIdentifier option.' diff --git a/src/provider/rpc.ts b/src/provider/rpc.ts index 3c7c88b50..279458026 100644 --- a/src/provider/rpc.ts +++ b/src/provider/rpc.ts @@ -344,16 +344,13 @@ export class RpcProvider implements ProviderInterface { initNonce: BigNumberish, options?: fastWaitForTransactionOptions ): Promise { - if (this.channel instanceof RPC09.RpcChannel) { - const isSuccess = await this.channel.fastWaitForTransaction( - txHash, - address, - initNonce, - options - ); - return isSuccess; - } - throw new Error('Unsupported channel type'); + const isSuccess = await this.channel.fastWaitForTransaction( + txHash, + address, + initNonce, + options + ); + return isSuccess; } public async getStorageAt(