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> {