File tree 4 files changed +10
-14
lines changed
4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -107,20 +107,19 @@ export function getTxStatusString(txStatus: DbTxStatus | string): Transaction['t
107
107
return 'abort_by_response' ;
108
108
case DbTxStatus . AbortByPostCondition :
109
109
return 'abort_by_post_condition' ;
110
- case DbTxStatus . AbortByPostCondition :
111
- return 'abort_by_post_condition' ;
110
+ case DbTxStatus . AbortByPostCondition :
111
+ return 'abort_by_post_condition' ;
112
112
default :
113
113
throw new Error ( `Unexpected DbTxStatus: ${ txStatus } ` ) ;
114
114
}
115
115
}
116
116
117
117
export function getTxStatus ( txStatus : DbTxStatus | string ) : string {
118
- if ( txStatus == '' ) {
119
- return ''
120
- } else {
121
- return getTxStatusString ( txStatus )
118
+ if ( txStatus == '' ) {
119
+ return '' ;
120
+ } else {
121
+ return getTxStatusString ( txStatus ) ;
122
122
}
123
-
124
123
}
125
124
126
125
type HasEventTransaction = SmartContractTransaction | ContractCallTransaction ;
Original file line number Diff line number Diff line change @@ -348,12 +348,9 @@ export function createRosettaConstructionRouter(db: DataStore): RouterWithAsync
348
348
} ;
349
349
}
350
350
res . json ( response ) ;
351
- } catch ( error ) {
352
- console . error ( error )
351
+ } catch ( error ) {
352
+ console . error ( error ) ;
353
353
}
354
-
355
-
356
-
357
354
} ) ;
358
355
359
356
//construction/submit endpoint
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export enum DbTxStatus {
40
40
Pending = 0 ,
41
41
Success = 1 ,
42
42
AbortByResponse = - 1 ,
43
- AbortByPostCondition = - 2
43
+ AbortByPostCondition = - 2 ,
44
44
}
45
45
46
46
export interface BaseTx {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import { ec as EC } from 'elliptic';
30
30
import { txidFromData } from '@blockstack/stacks-transactions/lib/utils' ;
31
31
import * as btc from 'bitcoinjs-lib' ;
32
32
import * as c32check from 'c32check' ;
33
- import { getTxTypeString , getTxStatus } from './api/controllers/db-controller' ;
33
+ import { getTxTypeString , getTxStatus } from './api/controllers/db-controller' ;
34
34
import { RosettaConstants , RosettaNetworks } from './api/rosetta-constants' ;
35
35
import { BaseTx , DbTxStatus , DbTxTypeId } from './datastore/common' ;
36
36
import { getTxSenderAddress , getTxSponsorAddress } from './event-stream/reader' ;
You can’t perform that action at this time.
0 commit comments