Skip to content

Commit

Permalink
Add accessor for StaticTxPayload::call_data (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi authored Sep 21, 2022
1 parent c100b0b commit 93cc55f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions subxt/src/tx/tx_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ impl<CallData> StaticTxPayload<CallData> {
..self
}
}

/// Returns the call data.
pub fn call_data(&self) -> &CallData {
&self.call_data
}
}

impl<CallData: Encode> TxPayload for StaticTxPayload<CallData> {
Expand Down

0 comments on commit 93cc55f

Please sign in to comment.