Skip to content

Commit

Permalink
client fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Sep 22, 2023
1 parent 33139bf commit bd495a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/test/util/rpc.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { bytesToHex } from '@ethereumjs/util'
import { MemoryLevel } from 'memory-level'
import { assert, describe, it } from 'vitest'

import { EthereumClient } from '../../src/client'
Expand All @@ -17,7 +18,7 @@ const request = require('supertest')
describe('[Util/RPC]', () => {
it('should return enabled RPC servers', async () => {
const config = new Config({ transports: [], accountCache: 10000, storageCache: 1000 })
const client = await EthereumClient.create({ config })
const client = await EthereumClient.create({ config, metaDB: new MemoryLevel() })
const manager = new RPCManager(client, config)
const { logger } = config
for (const methodConfig of Object.values(MethodConfig)) {
Expand Down Expand Up @@ -62,7 +63,7 @@ describe('[Util/RPC/Engine eth methods]', async () => {
storageCache: 1000,
saveReceipts: true,
})
const client = await EthereumClient.create({ config })
const client = await EthereumClient.create({ config, metaDB: new MemoryLevel() })
const manager = new RPCManager(client, config)
const { server } = createRPCServer(manager, {
methodConfig: MethodConfig.EngineOnly,
Expand Down

0 comments on commit bd495a2

Please sign in to comment.