From f8b1b2bf945518e75a7f4d81df0c33d8537c0872 Mon Sep 17 00:00:00 2001 From: clearloop <26088946+clearloop@users.noreply.github.com> Date: Thu, 15 Jun 2023 14:20:39 +0400 Subject: [PATCH] chore(subxt): make payload details public (#1014) --- subxt/src/tx/tx_payload.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/subxt/src/tx/tx_payload.rs b/subxt/src/tx/tx_payload.rs index 431538d79b..508a6a99e6 100644 --- a/subxt/src/tx/tx_payload.rs +++ b/subxt/src/tx/tx_payload.rs @@ -120,6 +120,16 @@ impl Payload { pub fn call_data(&self) -> &CallData { &self.call_data } + + /// Returns the pallet name. + pub fn pallet_name(&self) -> &str { + &self.pallet_name + } + + /// Returns the call name. + pub fn call_name(&self) -> &str { + &self.call_name + } } impl Payload> {