@@ -250,7 +250,7 @@ const addressRoutes: FastifyPluginCallback<Record<never, never>, Server, ZodType
250
250
251
251
async function getIsomorphicTx ( btcTx : BTCTransaction ) {
252
252
const isomorphicTx : IsomorphicTransaction = {
253
- ckbRawTx : undefined ,
253
+ ckbVirtualTx : undefined ,
254
254
ckbTx : undefined ,
255
255
status : { confirmed : false } ,
256
256
} ;
@@ -262,13 +262,13 @@ const addressRoutes: FastifyPluginCallback<Record<never, never>, Server, ZodType
262
262
const job = await fastify . transactionProcessor . getTransactionRequest ( btcTx . txid ) ;
263
263
if ( job ) {
264
264
const { ckbRawTx } = job . data . ckbVirtualResult ;
265
- isomorphicTx . ckbRawTx = ckbRawTx ;
265
+ isomorphicTx . ckbVirtualTx = ckbRawTx ;
266
266
// if the job is completed, get the ckb tx hash and fetch the ckb tx
267
267
const state = await job . getState ( ) ;
268
268
if ( state === 'completed' ) {
269
269
const ckbTx = await fastify . ckb . rpc . getTransaction ( job . returnvalue ) ;
270
270
// remove ckbRawTx to reduce response size
271
- isomorphicTx . ckbRawTx = undefined ;
271
+ isomorphicTx . ckbVirtualTx = undefined ;
272
272
setCkbTxAndStatus ( ckbTx ) ;
273
273
}
274
274
return isomorphicTx ;
@@ -350,19 +350,19 @@ const addressRoutes: FastifyPluginCallback<Record<never, never>, Server, ZodType
350
350
let txs = await Promise . all (
351
351
btcTxs . map ( async ( btcTx ) => {
352
352
const isomorphicTx = await getIsomorphicTx ( btcTx ) ;
353
- const isRgbpp = isomorphicTx . ckbRawTx || isomorphicTx . ckbTx ;
353
+ const isRgbpp = isomorphicTx . ckbVirtualTx || isomorphicTx . ckbTx ;
354
354
if ( ! isRgbpp ) {
355
355
return {
356
356
btcTx,
357
357
isRgbpp : false ,
358
358
} as const ;
359
359
}
360
360
361
- const inputOutpoints = isomorphicTx . ckbRawTx ?. inputs || isomorphicTx . ckbTx ?. inputs || [ ] ;
361
+ const inputOutpoints = isomorphicTx . ckbVirtualTx ?. inputs || isomorphicTx . ckbTx ?. inputs || [ ] ;
362
362
const inputs = await fastify . ckb . getInputCellsByOutPoint (
363
363
inputOutpoints . map ( ( input ) => input . previousOutput ) as CKBComponents . OutPoint [ ] ,
364
364
) ;
365
- const outputs = isomorphicTx . ckbRawTx ?. outputs || isomorphicTx . ckbTx ?. outputs || [ ] ;
365
+ const outputs = isomorphicTx . ckbVirtualTx ?. outputs || isomorphicTx . ckbTx ?. outputs || [ ] ;
366
366
367
367
return {
368
368
btcTx,
0 commit comments