Skip to content

Commit ba4ef9a

Browse files
authored
Merge pull request ethereumjs#188 from ryanio/fixTests
fix test runner
2 parents 2df0cf3 + 0b0606e commit ba4ef9a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/transactionRunner.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,12 @@ tape('TransactionTests', t => {
3636
'TransactionTests',
3737
(_filename: string, testName: string, testData: OfficialTransactionTestData) => {
3838
t.test(testName, st => {
39-
const rawTx = toBuffer(testData.rlp)
40-
41-
let tx
4239
forkNames.forEach(forkName => {
4340
const forkTestData = testData[forkName]
4441
const shouldBeInvalid = Object.keys(forkTestData).length === 0
4542
try {
46-
tx = new Tx(rawTx, {
43+
const rawTx = toBuffer(testData.rlp)
44+
const tx = new Tx(rawTx, {
4745
hardfork: forkNameMap[forkName],
4846
chain: 1,
4947
})

0 commit comments

Comments
 (0)