@@ -14,7 +14,7 @@ export type FELT = string;
1414export type ETH_ADDRESS = string ;
1515/**
1616 * A storage key. Represented as up to 62 hex digits, 3 bits, and 5 leading zeroes.
17- * @pattern ^0x0 [0-7]{1}[a-fA-F0-9]{0,62}$
17+ * @pattern ^0x(0| [0-7]{1}[a-fA-F0-9]{0,62}$)
1818 */
1919export type STORAGE_KEY = string ;
2020export type ADDRESS = FELT ;
@@ -407,12 +407,19 @@ export type L1_HANDLER_TXN = {
407407export type COMMON_RECEIPT_PROPERTIES = {
408408 transaction_hash : TXN_HASH ;
409409 actual_fee : FEE_PAYMENT ;
410- execution_status : TXN_EXECUTION_STATUS ;
411410 finality_status : TXN_FINALITY_STATUS ;
412411 messages_sent : MSG_TO_L1 [ ] ;
413- revert_reason ?: string ;
414412 events : EVENT [ ] ;
415413 execution_resources : EXECUTION_RESOURCES ;
414+ } & ( SUCCESSFUL_COMMON_RECEIPT_PROPERTIES | REVERTED_COMMON_RECEIPT_PROPERTIES ) ;
415+
416+ type SUCCESSFUL_COMMON_RECEIPT_PROPERTIES = {
417+ execution_status : 'SUCCEEDED' ;
418+ } ;
419+
420+ type REVERTED_COMMON_RECEIPT_PROPERTIES = {
421+ execution_status : 'REVERTED' ;
422+ revert_reason : string ;
416423} ;
417424
418425export type INVOKE_TXN_RECEIPT = {
@@ -639,6 +646,7 @@ export type L1_HANDLER_TXN_TRACE = {
639646 type : 'L1_HANDLER' ;
640647 function_invocation : FUNCTION_INVOCATION ;
641648 state_diff ?: STATE_DIFF ;
649+ execution_resources : EXECUTION_RESOURCES ;
642650} ;
643651
644652// Represents a nested function call.
0 commit comments