From dbe6c7c3de050db41f5837a01178299c464ec81d Mon Sep 17 00:00:00 2001 From: david barinas Date: Wed, 1 May 2024 16:44:01 -0500 Subject: [PATCH] style: Add chain extensions and clean up whitespace in lib.rs file --- sube/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sube/src/lib.rs b/sube/src/lib.rs index 7d8bf79..3f6296e 100644 --- a/sube/src/lib.rs +++ b/sube/src/lib.rs @@ -197,6 +197,7 @@ async fn submit<'m, V>( from: &'m [u8], tx_data: ExtrinsicBody, signer: impl SignerFn, + // add chain extensions ) -> Result> where V: serde::Serialize + core::fmt::Debug, @@ -263,7 +264,7 @@ where log::info!("tip_hex: {}", hex::encode(Compact(tip.clone()).encode())); let extra_params_hex = - hex::encode([Compact(era).encode(), Compact(nonce).encode(), Compact(tip).encode()].concat()); + hex::encode([Compact(era).encode(), Compact(nonce).encode(), Compact(tip).encode(), vec![0x00u8]].concat()); log::info!("extra_params_hex: {}", extra_params_hex); let extensions = (); @@ -277,7 +278,7 @@ where // log::info!("type_resolved: {:?}", type_resolved); // log::info!("========================"); // }); - + [ vec![era], Compact(nonce).encode(), Compact(tip).encode(), vec![0x00u8] ].concat()