diff --git a/subxt/src/tx/tx_payload.rs b/subxt/src/tx/tx_payload.rs index 10c5cc5c34..70b25be864 100644 --- a/subxt/src/tx/tx_payload.rs +++ b/subxt/src/tx/tx_payload.rs @@ -75,6 +75,11 @@ impl StaticTxPayload { ..self } } + + /// Returns the call data. + pub fn call_data(&self) -> &CallData { + &self.call_data + } } impl TxPayload for StaticTxPayload {