mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-22 03:36:18 +00:00
Allow taking out raw bytes from a SubmittableExtrinsic (#683)
This commit is contained in:
1 parent
51179a8b72
commit
10def3c2c4
1 file changed
+6
@@ -350,6 +350,12 @@ where
|
||||
pub fn encoded(&self) -> &[u8] {
|
||||
&self.encoded.0
|
||||
}
|
||||
|
||||
/// Consumes [`SubmittableExtrinsic`] and returns the SCALE encoded
|
||||
/// extrinsic bytes.
|
||||
pub fn into_encoded(self) -> Vec<u8> {
|
||||
self.encoded.0
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, C> SubmittableExtrinsic<T, C>
|
||||
|
||||
Reference in new issue
Block a user