From af277a2dd8c436f7727c9900934bad19f21c28ac Mon Sep 17 00:00:00 2001 From: Vova Lando Date: Tue, 29 Oct 2024 21:28:56 +0200 Subject: [PATCH] chore: fmt --- src/chain/payout.rs | 4 +++- src/main.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/chain/payout.rs b/src/chain/payout.rs index e9e257b..0a762b1 100644 --- a/src/chain/payout.rs +++ b/src/chain/payout.rs @@ -129,7 +129,9 @@ pub async fn payout( let signature = signer.sign(order.id, sign_this).await?; if let TypeContentToFill::Variant(ref mut multisig) = batch_transaction.signature.content { - if let TypeContentToFill::ArrayU8(ref mut sr25519) = multisig.selected.fields_to_fill[0].type_to_fill.content { + if let TypeContentToFill::ArrayU8(ref mut sr25519) = + multisig.selected.fields_to_fill[0].type_to_fill.content + { sr25519.content = signature.0.to_vec(); } } diff --git a/src/main.rs b/src/main.rs index 5d8f5ff..c1167c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,13 +22,13 @@ mod signer; mod state; mod utils; +use crate::error::ChainError; use arguments::{CliArgs, Config, SeedEnvVars, DATABASE_DEFAULT}; use chain::ChainManager; use database::ConfigWoChains; use error::{Error, PrettyCause}; use signer::Signer; use state::State; -use crate::error::ChainError; fn main() -> ExitCode { let shutdown_notification = ShutdownNotification::new();