Skip to content

Commit

Permalink
style: Add chain extensions and clean up whitespace in lib.rs file
Browse files Browse the repository at this point in the history
  • Loading branch information
S0c5 committed May 1, 2024
1 parent 061f8a1 commit dbe6c7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sube/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ async fn submit<'m, V>(
from: &'m [u8],
tx_data: ExtrinsicBody<V>,
signer: impl SignerFn,
// add chain extensions
) -> Result<Response<'m>>
where
V: serde::Serialize + core::fmt::Debug,
Expand Down Expand Up @@ -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 = ();
Expand All @@ -277,7 +278,7 @@ where
// log::info!("type_resolved: {:?}", type_resolved);
// log::info!("========================");
// });

[
vec![era], Compact(nonce).encode(), Compact(tip).encode(), vec![0x00u8]
].concat()
Expand Down

0 comments on commit dbe6c7c

Please sign in to comment.