From 16c50846c186073bb0e1cbd5ed1733c50be193c9 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Tue, 11 Mar 2025 14:49:52 +0000 Subject: [PATCH] Map finality timeout to Dropped instead of Invalid (#1953) --- Cargo.lock | 1 + subxt/src/backend/legacy.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 0c4844a6ee..08959a7bb9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2415,6 +2415,7 @@ version = "0.39.0" dependencies = [ "assert_matches", "cfg_aliases", + "frame-decode", "frame-metadata 20.0.0", "futures", "hex", diff --git a/subxt/src/backend/legacy.rs b/subxt/src/backend/legacy.rs index 39fa9d1893..5c317fd32f 100644 --- a/subxt/src/backend/legacy.rs +++ b/subxt/src/backend/legacy.rs @@ -382,7 +382,7 @@ impl Backend for LegacyBackend { } // These 5 mean that the stream will very likely end: RpcTransactionStatus::FinalityTimeout(_) => { - Some(TransactionStatus::Invalid { + Some(TransactionStatus::Dropped { message: "Finality timeout".into(), }) }