diff --git a/drip/Cargo.toml b/drip/Cargo.toml index 8d01cd772a..f1a6b4f34a 100644 --- a/drip/Cargo.toml +++ b/drip/Cargo.toml @@ -24,7 +24,7 @@ unionlabs = { workspace = true } async-graphql = "7.0.6" async-graphql-axum = "7.0.6" -async-sqlite = { version = "0.2.2", features = ["bundled", "array", "vtab"]} +async-sqlite = { version = "0.2.2", features = ["bundled", "array", "vtab"] } axum = "0.7.5" recaptcha-verify = "0.1.5" subtle-encoding = { workspace = true, features = ["bech32-preview"] } diff --git a/drip/src/main.rs b/drip/src/main.rs index 8bb83c7e89..1aaaf3032a 100644 --- a/drip/src/main.rs +++ b/drip/src/main.rs @@ -1,5 +1,11 @@ use std::{ - borrow::{Borrow, BorrowMut}, collections::HashMap, ffi::OsString, fmt, fs::read_to_string, rc::Rc, time::Duration + borrow::{Borrow, BorrowMut}, + collections::HashMap, + ffi::OsString, + fmt, + fs::read_to_string, + rc::Rc, + time::Duration, }; use async_graphql::{http::GraphiQLSource, *}; @@ -302,7 +308,6 @@ struct ChainClient { pub tm_client: WebSocketClient, } - impl CosmosSdkChainRpcs for ChainClient { fn tm_chain_id(&self) -> String { self.chain.id.clone() @@ -321,7 +326,6 @@ impl CosmosSdkChainRpcs for ChainClient { } } - impl ChainClient { pub async fn new(chain: &Chain) -> Self { let (tm_client, driver) = WebSocketClient::builder(chain.ws_url.clone()) @@ -453,11 +457,7 @@ impl ChainClient { }; let (tx_hash, gas_used) = self - .broadcast_tx_commit( - &self.signer, - [msg], - self.chain.memo.clone(), - ) + .broadcast_tx_commit(&self.signer, [msg], self.chain.memo.clone()) .await?; info!(