Simplify paths to extrinsic and storage types needed for .find

This commit is contained in:
James Wilson
2025-12-15 17:24:07 +00:00
parent 4d47acd24b
commit 853732550b
11 changed files with 418 additions and 27 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ async fn main() -> Result<(), Error> {
// Or we can decode into a known shape. Any type implementing DecodeAsType can
// be used here to extract fields you're interested in, or we can use the generated
// type which already implements this:
type AccountInfo = polkadot::system::storage::account::output::Output;
type AccountInfo = polkadot::system::storage::account::Output;
let balance_info = entry.decode_as::<AccountInfo>()?;
println!(