Skip to content

Commit a2efe40

Browse files
committed
Remove TODOs to issue
1 parent 53afa46 commit a2efe40

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

backend-rust/src/graphql_api.rs

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ impl Contract {
15411541
has_next_page,
15421542
has_previous_page: skip > 0,
15431543
},
1544-
items: Some(contract_events),
1544+
items: contract_events,
15451545
total_count: total_events_count,
15461546
})
15471547
}
@@ -2127,7 +2127,7 @@ struct ContractEventsCollectionSegment {
21272127
/// Information to aid in pagination.
21282128
page_info: CollectionSegmentInfo,
21292129
/// A flattened list of the items.
2130-
items: Option<Vec<ContractEvent>>,
2130+
items: Vec<ContractEvent>,
21312131
total_count: i32,
21322132
}
21332133

@@ -3852,10 +3852,6 @@ pub fn events_from_summary(
38523852
amount: i64::try_from(data.amount.micro_ccd)?,
38533853
init_name: data.init_name.to_string(),
38543854
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(),
38593855
contract_logs_raw: data.events.iter().map(|e| e.as_ref().to_vec()).collect(),
38603856
})]
38613857
}
@@ -4732,29 +4728,10 @@ pub struct ContractInitialized {
47324728
version: ContractVersion,
47334729
// All logged events by the smart contract during the transaction execution.
47344730
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>,
47394731
}
47404732

47414733
#[ComplexObject]
47424734
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-
47584735
async fn events_as_hex(&self) -> ApiResult<connection::Connection<String, String>> {
47594736
let mut connection = connection::Connection::new(true, true);
47604737

0 commit comments

Comments
 (0)