File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -151,10 +151,9 @@ export type BLOCK_BODY_WITH_TX_HASHES = {
151151} ;
152152
153153export type BLOCK_BODY_WITH_TXS = {
154- transactions : {
155- transaction : TXN ;
154+ transactions : ( TXN & {
156155 transaction_hash : TXN_HASH ;
157- } [ ] ;
156+ } ) [ ] ;
158157} ;
159158
160159export type BLOCK_HEADER = {
@@ -648,8 +647,7 @@ export type L1_HANDLER_TXN_TRACE = {
648647export type NESTED_CALL = FUNCTION_INVOCATION ;
649648
650649// Represents a function invocation along with its execution details.
651- export type FUNCTION_INVOCATION = {
652- function_call : FUNCTION_CALL ;
650+ export type FUNCTION_INVOCATION = FUNCTION_CALL & {
653651 caller_address : string ;
654652 class_hash : string ;
655653 entry_point_type : ENTRY_POINT_TYPE ;
Original file line number Diff line number Diff line change @@ -151,10 +151,9 @@ export type BLOCK_BODY_WITH_TX_HASHES = {
151151} ;
152152
153153export type BLOCK_BODY_WITH_TXS = {
154- transactions : {
155- transaction : TXN ; // TODO: double check if intersection
154+ transactions : ( TXN & {
156155 transaction_hash : TXN_HASH ;
157- } [ ] ;
156+ } ) [ ] ;
158157} ;
159158
160159export type BLOCK_BODY_WITH_RECEIPTS = {
@@ -678,8 +677,7 @@ export type L1_HANDLER_TXN_TRACE = {
678677export type NESTED_CALL = FUNCTION_INVOCATION ;
679678
680679// Represents a function invocation along with its execution details.
681- export type FUNCTION_INVOCATION = {
682- function_call : FUNCTION_CALL ; // TODO: double check if this should be an intersection
680+ export type FUNCTION_INVOCATION = FUNCTION_CALL & {
683681 caller_address : string ;
684682 class_hash : string ;
685683 entry_point_type : ENTRY_POINT_TYPE ;
You can’t perform that action at this time.
0 commit comments