From 83d29f9b87e8ac611dbc1763e71a60c2e0e273a7 Mon Sep 17 00:00:00 2001 From: Evan <0xIchigo@protonmail.com> Date: Tue, 21 May 2024 20:20:03 -0400 Subject: [PATCH] Formatting --- src/optimized_transaction.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/optimized_transaction.rs b/src/optimized_transaction.rs index bc02d1a..c4d736b 100644 --- a/src/optimized_transaction.rs +++ b/src/optimized_transaction.rs @@ -4,7 +4,7 @@ use crate::Helius; use base64::engine::general_purpose::STANDARD; use base64::Engine; -use bincode::{ErrorKind, serialize}; +use bincode::{serialize, ErrorKind}; use reqwest::StatusCode; use solana_client::rpc_config::RpcSendTransactionConfig; use solana_client::rpc_response::{Response, RpcSimulateTransactionResult}; @@ -120,7 +120,8 @@ impl Helius { transaction.try_sign(&[config.from_keypair], recent_blockhash)?; // Serialize the transaction - let serialized_transaction: Vec = serialize(&transaction).map_err(|e: Box| HeliusError::InvalidInput(e.to_string()))?; + let serialized_transaction: Vec = + serialize(&transaction).map_err(|e: Box| HeliusError::InvalidInput(e.to_string()))?; // Convert the serialized transaction to a Base64 string let transaction_base64: String = STANDARD.encode(&serialized_transaction);