File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,13 @@ impl TryFrom<protoserialization::TransactionInput> for RpcTransactionInput {
6969 }
7070}
7171
72-
7372impl TryFrom < protoserialization:: Outpoint > for RpcTransactionOutpoint {
7473 type Error = Status ;
7574
76- fn try_from ( _ : protoserialization:: Outpoint /*protoserialization::Outpoint{ transaction_id, index }: protoserialization::Outpoint*/ ) -> Result < Self , Self :: Error > {
75+ fn try_from (
76+ _: protoserialization:: Outpoint , /*protoserialization::Outpoint{ transaction_id, index }: protoserialization::Outpoint*/
77+ ) -> Result < Self , Self :: Error > {
7778 todo ! ( )
7879 // Ok(RpcTransactionOutpoint { transaction_id: Default::default(), index: 0 })
7980 }
80- }
81+ }
Original file line number Diff line number Diff line change 11pub mod service;
22
33use kaspa_rpc_core:: RpcTransaction ;
4+ use kaspa_wallet_core:: api:: WalletApi ;
45use kaspa_wallet_core:: {
56 api:: { AccountsGetUtxosRequest , AccountsSendRequest , NewAddressKind } ,
67 prelude:: Address ,
@@ -17,7 +18,6 @@ use kaspa_wallet_grpc_core::protoserialization::TransactionMessage;
1718use prost:: Message ;
1819use service:: Service ;
1920use tonic:: { Request , Response , Status } ;
20- use kaspa_wallet_core:: api:: WalletApi ;
2121
2222#[ tonic:: async_trait]
2323impl Kaspawalletd for Service {
@@ -72,8 +72,7 @@ impl Kaspawalletd for Service {
7272 let request = request. into_inner ( ) ;
7373 let _ = request. transactions . into_iter ( ) . map ( |tx| -> Result < _ , Status > {
7474 if request. is_domain {
75- let tx =
76- TransactionMessage :: decode ( tx. as_slice ( ) ) . map_err ( |err| Status :: invalid_argument ( err. to_string ( ) ) ) ?;
75+ let tx = TransactionMessage :: decode ( tx. as_slice ( ) ) . map_err ( |err| Status :: invalid_argument ( err. to_string ( ) ) ) ?;
7776 let tx = RpcTransaction :: try_from ( tx) ?;
7877 Ok ( tx)
7978 } else {
You can’t perform that action at this time.
0 commit comments