From ffdca21959330034874ce5351cfa27d3414701f2 Mon Sep 17 00:00:00 2001 From: Vladimir Stepanenko Date: Wed, 4 Dec 2024 19:58:25 +0700 Subject: [PATCH] Fix TON Bridge fetch nonce (#45) Co-authored-by: f33r0 <95526886+f33r0@users.noreply.github.com> --- relayer/src/relay/ton/ton_messages.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relayer/src/relay/ton/ton_messages.rs b/relayer/src/relay/ton/ton_messages.rs index 2233dae..10c8a89 100644 --- a/relayer/src/relay/ton/ton_messages.rs +++ b/relayer/src/relay/ton/ton_messages.rs @@ -196,9 +196,9 @@ impl Relay { let sub_nonce = self .sub .storage_fetch_or_default( - &runtime::storage().bridge_inbound_channel().channel_nonces( - &bridge_types::GenericNetworkId::TON(bridge_types::ton::TonNetworkId::Testnet), - ), + &runtime::storage() + .bridge_inbound_channel() + .channel_nonces(&self.ton_network_id), (), ) .await?;