Skip to content

Commit fa98159

Browse files
authored
fix: remove rejected constant (#49)
1 parent 631a0d4 commit fa98159

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/api/constants.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ export const STATUS_SUCCEEDED = 'SUCCEEDED';
2222
export type STATUS_REVERTED = 'REVERTED';
2323
export const STATUS_REVERTED = 'REVERTED';
2424

25-
/**
26-
* The block was rejected and will not be included
27-
*/
28-
export type STATUS_REJECTED = 'REJECTED';
29-
export const STATUS_REJECTED = 'REJECTED';
30-
3125
/**
3226
* The transaction was received by the sequencer
3327
*/

src/api/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { CONTRACT_EXECUTION_ERROR } from './components.js';
2-
import type { STATUS_RECEIVED, STATUS_REJECTED } from './constants.js';
2+
import type { STATUS_RECEIVED } from './constants.js';
33

44
export interface FAILED_TO_RECEIVE_TXN {
55
code: 1;
@@ -10,7 +10,7 @@ export interface NO_TRACE_AVAILABLE {
1010
code: 10;
1111
message: 'No trace available for transaction';
1212
data: {
13-
status: STATUS_RECEIVED | STATUS_REJECTED;
13+
status: STATUS_RECEIVED | 'REJECTED'; // TODO: this is probably for old transactions
1414
};
1515
}
1616

0 commit comments

Comments
 (0)