This repository was archived by the owner on Feb 8, 2025. It is now read-only.
File tree 1 file changed +4
-5
lines changed
api/src/features/system-txs
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,19 +28,18 @@ export class SchedulerWorker extends Worker<SchedulerQueue> {
28
28
async process ( job : TypedJob < SchedulerQueue > ) {
29
29
const selectedProposal = selectTransaction ( job . data . transaction ) ;
30
30
const proposal = await this . db . query (
31
- e . select ( selectedProposal , ( p ) => ( {
31
+ e . select ( selectedProposal , ( ) => ( {
32
32
account : { address : true } ,
33
+ status : true ,
33
34
simulation : { success : true } ,
34
- transaction : { receipt : true } ,
35
- isScheduled : p . result . is ( e . Scheduled ) ,
36
35
...TX_SHAPE ,
37
- maxPaymasterEthFees : { activation : true , total : true } ,
36
+ maxPaymasterEthFees : { activation : true , ... TX_SHAPE . maxPaymasterEthFees } ,
38
37
} ) ) ,
39
38
) ;
40
39
if ( ! proposal ) return 'Proposal not found' ;
40
+ if ( proposal . status !== 'Scheduled' ) return 'Not scheduled' ;
41
41
if ( ! proposal . simulation ) return 'Not simulated' ;
42
42
if ( ! proposal . simulation . success ) return 'Simulation failed' ;
43
- if ( ! proposal . isScheduled ) return 'Not scheduled' ;
44
43
45
44
const account = asUAddress ( proposal . account . address ) ;
46
45
const network = this . networks . get ( account ) ;
You can’t perform that action at this time.
0 commit comments