Use scale-decode to help optimise event decoding (#607)

* WIP use scale-decode

* Use scale-decode for event decoding and other optimising in that area

* comment tweaks

* samll optimisation on as_event fn
This commit is contained in:
James Wilson
2022-08-10 11:59:33 +01:00
committed by GitHub
parent e48f0e3b1d
commit cb43ffe03a
4 changed files with 175 additions and 168 deletions
@@ -139,7 +139,7 @@ async fn tx_dynamic_transfer() -> Result<(), subxt::Error> {
.filter_map(|ev| ev.ok())
.find(|ev| ev.pallet_name() == "Balances" && ev.variant_name() == "Transfer")
.expect("Failed to find Transfer event")
.field_values()
.field_values()?
.map_context(|_| ());
let expected_fields = Composite::Named(vec![