From 93cc55feb49e3d0e56b8602493feaec52e83f465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Wed, 21 Sep 2022 14:26:34 +0200 Subject: [PATCH] Add accessor for `StaticTxPayload::call_data` (#660) --- subxt/src/tx/tx_payload.rs | 5 +++++ 1 file changed, 5 insertions(+) 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 {