@@ -250,7 +250,7 @@ const addressRoutes: FastifyPluginCallback<Record<never, never>, Server, ZodType
250250
251251 async function getIsomorphicTx ( btcTx : BTCTransaction ) {
252252 const isomorphicTx : IsomorphicTransaction = {
253- ckbRawTx : undefined ,
253+ ckbVirtualTx : undefined ,
254254 ckbTx : undefined ,
255255 status : { confirmed : false } ,
256256 } ;
@@ -262,13 +262,13 @@ const addressRoutes: FastifyPluginCallback<Record<never, never>, Server, ZodType
262262 const job = await fastify . transactionProcessor . getTransactionRequest ( btcTx . txid ) ;
263263 if ( job ) {
264264 const { ckbRawTx } = job . data . ckbVirtualResult ;
265- isomorphicTx . ckbRawTx = ckbRawTx ;
265+ isomorphicTx . ckbVirtualTx = ckbRawTx ;
266266 // if the job is completed, get the ckb tx hash and fetch the ckb tx
267267 const state = await job . getState ( ) ;
268268 if ( state === 'completed' ) {
269269 const ckbTx = await fastify . ckb . rpc . getTransaction ( job . returnvalue ) ;
270270 // remove ckbRawTx to reduce response size
271- isomorphicTx . ckbRawTx = undefined ;
271+ isomorphicTx . ckbVirtualTx = undefined ;
272272 setCkbTxAndStatus ( ckbTx ) ;
273273 }
274274 return isomorphicTx ;
@@ -350,19 +350,19 @@ const addressRoutes: FastifyPluginCallback<Record<never, never>, Server, ZodType
350350 let txs = await Promise . all (
351351 btcTxs . map ( async ( btcTx ) => {
352352 const isomorphicTx = await getIsomorphicTx ( btcTx ) ;
353- const isRgbpp = isomorphicTx . ckbRawTx || isomorphicTx . ckbTx ;
353+ const isRgbpp = isomorphicTx . ckbVirtualTx || isomorphicTx . ckbTx ;
354354 if ( ! isRgbpp ) {
355355 return {
356356 btcTx,
357357 isRgbpp : false ,
358358 } as const ;
359359 }
360360
361- const inputOutpoints = isomorphicTx . ckbRawTx ?. inputs || isomorphicTx . ckbTx ?. inputs || [ ] ;
361+ const inputOutpoints = isomorphicTx . ckbVirtualTx ?. inputs || isomorphicTx . ckbTx ?. inputs || [ ] ;
362362 const inputs = await fastify . ckb . getInputCellsByOutPoint (
363363 inputOutpoints . map ( ( input ) => input . previousOutput ) as CKBComponents . OutPoint [ ] ,
364364 ) ;
365- const outputs = isomorphicTx . ckbRawTx ?. outputs || isomorphicTx . ckbTx ?. outputs || [ ] ;
365+ const outputs = isomorphicTx . ckbVirtualTx ?. outputs || isomorphicTx . ckbTx ?. outputs || [ ] ;
366366
367367 return {
368368 btcTx,
0 commit comments