Skip to content

Commit a550a3c

Browse files
committed
fix: update imports for penumbra deps
Soft KMS moved to a module, the "Protobuf" type was renamed to "DomainType". That'll do it.
1 parent 0f30a88 commit a550a3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/opt/serve.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use clap::Parser;
33
use directories::ProjectDirs;
44
use futures::{stream::FuturesUnordered, StreamExt, TryStreamExt};
55
use penumbra_crypto::{Value, Zero};
6-
use penumbra_custody::SoftKms;
6+
use penumbra_custody::soft_kms::SoftKms;
77
use penumbra_proto::{
88
custody::v1alpha1::{
99
custody_protocol_service_client::CustodyProtocolServiceClient,
@@ -99,7 +99,7 @@ impl Serve {
9999

100100
// Build a custody service...
101101
let wallet = Wallet::load(custody_file)?;
102-
let soft_kms = SoftKms::new(vec![wallet.spend_key.clone()]);
102+
let soft_kms = SoftKms::new(wallet.spend_key.clone().into());
103103
let custody =
104104
CustodyProtocolServiceClient::new(CustodyProtocolServiceServer::new(soft_kms));
105105

src/wallet.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl<V: ViewClient, C: CustodyClient> WalletWorker<V, C> {
148148
/// node has accepted the transaction, and erroring otherwise.
149149
#[instrument(skip(self, transaction))]
150150
pub async fn submit_transaction(&self, transaction: &Transaction) -> Result<(), anyhow::Error> {
151-
use penumbra_proto::Protobuf;
151+
use penumbra_proto::DomainType;
152152
tracing::info!("broadcasting transaction...");
153153

154154
let client = reqwest::Client::new();

0 commit comments

Comments
 (0)