Skip to content

Commit

Permalink
chore(subxt): make payload details public (#1014)
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop authored Jun 15, 2023
1 parent b403401 commit f8b1b2b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions subxt/src/tx/tx_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ impl<CallData> Payload<CallData> {
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<Composite<()>> {
Expand Down

0 comments on commit f8b1b2b

Please sign in to comment.