From 6b2465c4468597e489d6ed20843cb3af85c7333d Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Tue, 23 Jan 2024 10:57:14 +0100 Subject: [PATCH] feat: add into_signer to Wallet --- crates/signer/src/wallet/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/signer/src/wallet/mod.rs b/crates/signer/src/wallet/mod.rs index f03922ad60a..6f42fa121b0 100644 --- a/crates/signer/src/wallet/mod.rs +++ b/crates/signer/src/wallet/mod.rs @@ -111,6 +111,11 @@ impl + Send + Sync> Wallet { pub const fn signer(&self) -> &D { &self.signer } + + /// Consumes this wallet and returns its signer. + pub fn into_signer(self) -> D { + self.signer + } } // do not log the signer