diff --git a/crates/wallet/src/lib.rs b/crates/wallet/src/lib.rs index b66d947..61af625 100644 --- a/crates/wallet/src/lib.rs +++ b/crates/wallet/src/lib.rs @@ -294,13 +294,13 @@ impl From for jsonrpsee::types::error::ErrorObject<'static> /// Implementation of the Odyssey `wallet_` namespace. #[derive(Debug)] -pub struct OdysseyWallet { - inner: Arc>, +pub struct OdysseyWallet { + inner: Arc>, } -impl OdysseyWallet { +impl OdysseyWallet { /// Create a new Odyssey wallet module. - pub fn new(upstream: Upstream, chain_id: ChainId) -> Self { + pub fn new(upstream: T, chain_id: ChainId) -> Self { let inner = OdysseyWalletInner { upstream, chain_id, @@ -316,9 +316,9 @@ impl OdysseyWallet { } #[async_trait] -impl OdysseyWalletApiServer for OdysseyWallet +impl OdysseyWalletApiServer for OdysseyWallet where - N: Upstream + Sync + Send + 'static, + T: Upstream + Sync + Send + 'static, { async fn send_transaction(&self, mut request: TransactionRequest) -> RpcResult { trace!(target: "rpc::wallet", ?request, "Serving odyssey_sendTransaction"); @@ -399,8 +399,8 @@ where /// Implementation of the Odyssey `wallet_` namespace. #[derive(Debug)] -struct OdysseyWalletInner { - upstream: Upstream, +struct OdysseyWalletInner { + upstream: T, chain_id: ChainId, /// Used to guard tx signing permit: Mutex<()>,