Skip to content

Commit ea7ee50

Browse files
committed
fmt
1 parent cedeead commit ea7ee50

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

wallet/grpc/core/src/convert.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ impl TryFrom<protoserialization::TransactionInput> for RpcTransactionInput {
6969
}
7070
}
7171

72-
7372
impl 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+
}

wallet/grpc/server/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pub mod service;
22

33
use kaspa_rpc_core::RpcTransaction;
4+
use kaspa_wallet_core::api::WalletApi;
45
use kaspa_wallet_core::{
56
api::{AccountsGetUtxosRequest, AccountsSendRequest, NewAddressKind},
67
prelude::Address,
@@ -17,7 +18,6 @@ use kaspa_wallet_grpc_core::protoserialization::TransactionMessage;
1718
use prost::Message;
1819
use service::Service;
1920
use tonic::{Request, Response, Status};
20-
use kaspa_wallet_core::api::WalletApi;
2121

2222
#[tonic::async_trait]
2323
impl 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 {

0 commit comments

Comments
 (0)