Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
willemolding committed May 23, 2024
1 parent fb213f3 commit dac24eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use futures_util::future::FutureExt;

const DAPP_RELAY_CONTRACT_ADDRESS: &str = "f5de34d6bbc0446e2a45719e718efebaae179dae";


#[cfg(feature = "lightwalletd")]
use cartezcash_lightwalletd::{
proto::service::compact_tx_streamer_server::CompactTxStreamerServer,
Expand Down Expand Up @@ -150,7 +149,11 @@ impl Service<RollAppRequest> for CarteZcashApp {
match req {
RollAppRequest::AdvanceState { metadata, payload } => {
// if sent by this address the message is relaying the dApp address. Handle accordingly
if metadata.msg_sender == ethereum_types::Address::from_slice(&hex::decode(DAPP_RELAY_CONTRACT_ADDRESS).unwrap()) {
if metadata.msg_sender
== ethereum_types::Address::from_slice(
&hex::decode(DAPP_RELAY_CONTRACT_ADDRESS).unwrap(),
)
{
let dapp_address = ethereum_types::Address::from_slice(&payload);
tracing::info!("Received dapp address: {:?}", dapp_address);
self.dapp_address = Some(dapp_address);
Expand Down

0 comments on commit dac24eb

Please sign in to comment.