From 7f13484ae5f79de829a1a1ec49551bf4eeee6b2a Mon Sep 17 00:00:00 2001 From: leruaa Date: Wed, 26 Jun 2024 19:12:52 +0000 Subject: [PATCH] feat: allow to convert CallBuilderTo TransactionRequest --- crates/contract/src/call.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/contract/src/call.rs b/crates/contract/src/call.rs index 8ea9ce6c358..77ba97815a2 100644 --- a/crates/contract/src/call.rs +++ b/crates/contract/src/call.rs @@ -131,6 +131,13 @@ pub struct CallBuilder { transport: PhantomData, } +impl CallBuilder { + /// Converts the call builder to the inner transaction request + pub fn into_transaction_request(self) -> N::TransactionRequest { + self.request + } +} + impl AsRef for CallBuilder { fn as_ref(&self) -> &N::TransactionRequest { &self.request