|
1 | 1 | import { createBlock } from '@ethereumjs/block'
|
2 | 2 | import { Common, Hardfork, Holesky } from '@ethereumjs/common'
|
3 |
| -import { TransactionType, createFeeMarket1559Tx, createTxFromTxData } from '@ethereumjs/tx' |
| 3 | +import { TransactionType, createFeeMarket1559Tx, createTx } from '@ethereumjs/tx' |
4 | 4 | import {
|
5 | 5 | bigIntToBytes,
|
6 | 6 | bytesToBigInt,
|
@@ -226,10 +226,10 @@ describe('[EthProtocol]', () => {
|
226 | 226 | const chain = await Chain.create({ config })
|
227 | 227 | const p = new EthProtocol({ config, chain })
|
228 | 228 |
|
229 |
| - const legacyTx = createTxFromTxData({ type: 0 }, { common: config.chainCommon }) |
230 |
| - const eip2929Tx = createTxFromTxData({ type: 1 }, { common: config.chainCommon }) |
231 |
| - const eip1559Tx = createTxFromTxData({ type: 2 }, { common: config.chainCommon }) |
232 |
| - const blobTx = createTxFromTxData( |
| 229 | + const legacyTx = createTx({ type: 0 }, { common: config.chainCommon }) |
| 230 | + const eip2929Tx = createTx({ type: 1 }, { common: config.chainCommon }) |
| 231 | + const eip1559Tx = createTx({ type: 2 }, { common: config.chainCommon }) |
| 232 | + const blobTx = createTx( |
233 | 233 | {
|
234 | 234 | type: 3,
|
235 | 235 | to: createZeroAddress(),
|
@@ -265,7 +265,7 @@ describe('[EthProtocol]', () => {
|
265 | 265 | })
|
266 | 266 | const chain = await Chain.create({ config })
|
267 | 267 | const p = new EthProtocol({ config, chain })
|
268 |
| - const fakeTx = createTxFromTxData({}).sign(randomBytes(32)) |
| 268 | + const fakeTx = createTx({}).sign(randomBytes(32)) |
269 | 269 | const fakeHash = fakeTx.hash()
|
270 | 270 | const encoded = p.encode(
|
271 | 271 | p.messages.filter((message) => message.name === 'NewPooledTransactionHashes')[0],
|
|
0 commit comments