Allow taking out raw bytes from a SubmittableExtrinsic (#683)

This commit is contained in:
MOZGIII
2022-10-10 13:28:23 +04:00
committed by GitHub
parent 51179a8b72
commit 10def3c2c4
+6
View File
@@ -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>