File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -8944,7 +8944,7 @@ describe('api tests', () => {
8944
8944
execution_cost_write_count : 0 ,
8945
8945
execution_cost_write_length : 0 ,
8946
8946
} ;
8947
- await db . updateBlock ( client , block ) ;
8947
+ // await db.updateBlock(client, block);
8948
8948
const tx : DbTx = {
8949
8949
tx_id : '0x1234' ,
8950
8950
tx_index : 4 ,
@@ -8979,7 +8979,25 @@ describe('api tests', () => {
8979
8979
execution_cost_write_count : 0 ,
8980
8980
execution_cost_write_length : 0 ,
8981
8981
} ;
8982
- await db . updateTx ( client , tx ) ;
8982
+ // await db.updateTx(client, tx);
8983
+ await db . update ( {
8984
+ block,
8985
+ microblocks : [ ] ,
8986
+ minerRewards : [ ] ,
8987
+ txs : [
8988
+ {
8989
+ tx,
8990
+ stxEvents : [ ] ,
8991
+ stxLockEvents : [ ] ,
8992
+ ftEvents : [ ] ,
8993
+ nftEvents : [ ] ,
8994
+ contractLogEvents : [ ] ,
8995
+ names : [ ] ,
8996
+ namespaces : [ ] ,
8997
+ smartContracts : [ ] ,
8998
+ } ,
8999
+ ] ,
9000
+ } ) ;
8983
9001
const result = await supertest ( api . server ) . get (
8984
9002
`/extended/v1/tx/block/${ block . block_hash } ?limit=20&offset=0`
8985
9003
) ;
You can’t perform that action at this time.
0 commit comments