@@ -1541,7 +1541,7 @@ impl Contract {
1541
1541
has_next_page,
1542
1542
has_previous_page : skip > 0 ,
1543
1543
} ,
1544
- items : Some ( contract_events) ,
1544
+ items : contract_events,
1545
1545
total_count : total_events_count,
1546
1546
} )
1547
1547
}
@@ -2127,7 +2127,7 @@ struct ContractEventsCollectionSegment {
2127
2127
/// Information to aid in pagination.
2128
2128
page_info : CollectionSegmentInfo ,
2129
2129
/// A flattened list of the items.
2130
- items : Option < Vec < ContractEvent > > ,
2130
+ items : Vec < ContractEvent > ,
2131
2131
total_count : i32 ,
2132
2132
}
2133
2133
@@ -3852,10 +3852,6 @@ pub fn events_from_summary(
3852
3852
amount: i64 :: try_from( data. amount. micro_ccd) ?,
3853
3853
init_name: data. init_name. to_string( ) ,
3854
3854
version: data. contract_version. into( ) ,
3855
- // TODO: the send message/input parameter is missing and not exposed by the
3856
- // node and rust SDK currently, it should be added when available.
3857
- //
3858
- // input_parameter: data.message.as_ref().to_vec(),
3859
3855
contract_logs_raw: data. events. iter( ) . map( |e| e. as_ref( ) . to_vec( ) ) . collect( ) ,
3860
3856
} ) ]
3861
3857
}
@@ -4732,29 +4728,10 @@ pub struct ContractInitialized {
4732
4728
version : ContractVersion ,
4733
4729
// All logged events by the smart contract during the transaction execution.
4734
4730
contract_logs_raw : Vec < Vec < u8 > > ,
4735
- // TODO: the send message/input parameter is missing and not exposed by the node and rust SDK
4736
- // currently, it should be added when available.
4737
- //
4738
- // input_parameter: Vec<u8>,
4739
4731
}
4740
4732
4741
4733
#[ ComplexObject ]
4742
4734
impl ContractInitialized {
4743
- // TODO: the send message/input parameter is missing and not exposed by the node
4744
- // and rust SDK currently, it should be added when available.
4745
- //
4746
- // async fn message(&self) -> ApiResult<String> {
4747
- // // TODO: decode input-parameter/message with schema.
4748
-
4749
- // Ok(self.input_parameter)
4750
- // }
4751
-
4752
- // TODO: the send message/input parameter is missing and not exposed by the node
4753
- // and rust SDK currently, it should be added when available.
4754
- //
4755
- // async fn message_as_hex(&self) -> ApiResult<String> {
4756
- // Ok(hex::encode(self.input_parameter)) }
4757
-
4758
4735
async fn events_as_hex ( & self ) -> ApiResult < connection:: Connection < String , String > > {
4759
4736
let mut connection = connection:: Connection :: new ( true , true ) ;
4760
4737
0 commit comments