@@ -5,7 +5,7 @@ import { ConsensusType } from '@ethereumjs/common'
55import { LegacyTx , createLegacyTx , createFeeMarket1559Tx , createEOACode7702Tx , createLegacyTxFromRLP , createFeeMarket1559TxFromRLP } from '@ethereumjs/tx'
66import { Block , createBlock , createBlockFromRLP } from '@ethereumjs/block'
77import { bytesToHex , hexToBytes , createAddressFromString } from '@ethereumjs/util'
8- import type { AddressLike , BigIntLike } from '@ethereumjs/util'
8+ import type { AddressLike , BigIntLike , PrefixedHexString } from '@ethereumjs/util'
99import { EventManager } from '../eventManager'
1010import { LogsManager } from './logsManager'
1111import type { Transaction as InternalTransaction } from './txRunner'
@@ -114,9 +114,9 @@ export class TxRunnerVM {
114114 let tx
115115 if ( signed ) {
116116 if ( ! EIP1559 ) {
117- tx = createLegacyTxFromRLP ( hexToBytes ( data ) , { common : this . commonContext } )
117+ tx = createLegacyTxFromRLP ( hexToBytes ( data as PrefixedHexString ) , { common : this . commonContext } )
118118 } else {
119- tx = createFeeMarket1559TxFromRLP ( hexToBytes ( data ) , { common : this . commonContext } )
119+ tx = createFeeMarket1559TxFromRLP ( hexToBytes ( data as PrefixedHexString ) , { common : this . commonContext } )
120120 }
121121 }
122122 else {
@@ -137,7 +137,7 @@ export class TxRunnerVM {
137137 gasLimit : gasLimit ,
138138 to : ( to as AddressLike ) ,
139139 value : ( value as BigIntLike ) ,
140- data : hexToBytes ( data )
140+ data : hexToBytes ( data as PrefixedHexString )
141141 } , { common : this . commonContext } ) . sign ( account . privateKey )
142142 } else {
143143 tx = createFeeMarket1559Tx ( {
@@ -147,7 +147,7 @@ export class TxRunnerVM {
147147 gasLimit : gasLimit ,
148148 to : ( to as AddressLike ) ,
149149 value : ( value as BigIntLike ) ,
150- data : hexToBytes ( data )
150+ data : hexToBytes ( data as PrefixedHexString )
151151 } ) . sign ( account . privateKey )
152152 }
153153 }
0 commit comments