Skip to content

Commit 9d3652f

Browse files
committed
Fix client tests
1 parent b1bae17 commit 9d3652f

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

packages/client/test/rpc/debug/storageRangeAt.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe(method, () => {
154154

155155
const thirdResult = await blockBuilder.addTransaction(thirdTx, { skipHardForkValidation: true })
156156

157-
const block = await blockBuilder.build()
157+
const { block } = await blockBuilder.build()
158158
await chain.putBlocks([block], true)
159159

160160
context.rpc = rpc

packages/client/test/rpc/engine/newPayloadV3VersionedHashes.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ describe(`${method}: Cancun validations`, () => {
4040
let res = await rpc.request(method, blockDataExtraVersionedHashes)
4141

4242
assert.equal(res.result.status, 'INVALID')
43+
console.log(res.result.validationError)
4344
assert.equal(
4445
res.result.validationError,
45-
'Error verifying blobVersionedHashes: expected=0 received=2',
46+
'Error assembling block from payload: Error verifying blobVersionedHashes: expected=0 received=2',
4647
)
4748

4849
const txString =
@@ -105,7 +106,7 @@ describe(`${method}: Cancun validations`, () => {
105106
assert.equal(res.result.status, 'INVALID')
106107
assert.equal(
107108
res.result.validationError,
108-
'Error verifying blobVersionedHashes: expected=2 received=1',
109+
'Error assembling block from payload: Error verifying blobVersionedHashes: expected=2 received=1',
109110
)
110111

111112
const blockDataExtraMisMatchingHashes1 = [
@@ -127,7 +128,7 @@ describe(`${method}: Cancun validations`, () => {
127128
assert.equal(res.result.status, 'INVALID')
128129
assert.equal(
129130
res.result.validationError,
130-
'Error verifying blobVersionedHashes: mismatch at index=1 expected=0x0131…52c5 received=0x3456…',
131+
'Error assembling block from payload: Error verifying blobVersionedHashes: mismatch at index=1 expected=0x0131…52c5 received=0x3456…',
131132
)
132133

133134
const blockDataMatchingVersionedHashes = [

packages/client/test/rpc/eth/blobBaseFee.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const produceBlockWith4844Tx = async (
8484
nonce++
8585
}
8686

87-
const block = await blockBuilder.build()
87+
const { block } = await blockBuilder.build()
8888
await chain.putBlocks([block], true)
8989
await execution.run()
9090
}

packages/client/test/rpc/eth/getFeeHistory.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const produceFakeGasUsedBlock = async (execution: VMExecution, chain: Chain, gas
5555
})
5656
blockBuilder.gasUsed = gasUsed
5757

58-
const block = await blockBuilder.build()
58+
const { block } = await blockBuilder.build()
5959
await chain.putBlocks([block], false)
6060
//await execution.run()
6161
}
@@ -110,7 +110,7 @@ const produceBlockWithTx = async (
110110
nonce++
111111
}
112112

113-
const block = await blockBuilder.build()
113+
const { block } = await blockBuilder.build()
114114
await chain.putBlocks([block], false)
115115
await execution.run()
116116
}
@@ -179,7 +179,7 @@ const produceBlockWith4844Tx = async (
179179
nonce++
180180
}
181181

182-
const block = await blockBuilder.build()
182+
const { block } = await blockBuilder.build()
183183
await chain.putBlocks([block], true)
184184
await execution.run()
185185
}

0 commit comments

Comments
 (0)