Skip to content

Commit

Permalink
client spec and lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Mar 26, 2024
1 parent 0395441 commit d7e2635
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/client/test/rpc/engine/kaustinen4.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ describe(`valid verkle network setup`, async () => {
}

if (process.env.TEST_GETH_VEC_DIR !== undefined) {
// eslint-disable-next-line @typescript-eslint/no-use-before-define
const gethVecs = await loadGethVectors(process.env.TEST_GETH_VEC_DIR, { common })
let parent = gethVecs[0]
for (let i = 1; i < gethVecs.length; i++) {
Expand Down
5 changes: 5 additions & 0 deletions packages/client/test/rpc/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ export async function createClient(clientOpts: Partial<createClientArgs> = {}) {
clientOpts.chain ?? new Chain({ config, blockchain: blockchain as any, genesisState })
chain.opened = true

// if blockchain has not been bundled with chain, add the mock blockchain
if (chain.blockchain === undefined) {
chain.blockchain = blockchain
}

const defaultClientConfig = {
opened: true,
ethProtocolVersions: [65],
Expand Down

0 comments on commit d7e2635

Please sign in to comment.