From 51aaed1594021cf22cf1d9b30ecd74f7c75d248a Mon Sep 17 00:00:00 2001 From: Marcello Date: Fri, 20 Oct 2023 16:42:05 +0200 Subject: [PATCH] temp-fix: dry_run always succeeds (#4130) temp fix for dry_run --- api/lib/src/lib.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/api/lib/src/lib.rs b/api/lib/src/lib.rs index bb19eabb64..48875e2aec 100644 --- a/api/lib/src/lib.rs +++ b/api/lib/src/lib.rs @@ -9,7 +9,6 @@ use cf_chains::{ AnyChain, CcmChannelMetadata, ForeignChain, }; use cf_primitives::{AccountRole, Asset, BasisPoints, ChannelId}; -use codec::Encode; use futures::FutureExt; use pallet_cf_governance::ExecutionMode; use pallet_cf_validator::MAX_LENGTH_FOR_VANITY_NAME; @@ -147,14 +146,11 @@ impl< { async fn dry_run( &self, - call: RuntimeCall, - at: Option, + _call: RuntimeCall, + _at: Option, ) -> Result { - Ok(self - .base_rpc_client - .raw_rpc_client - .dry_run(Encode::encode(&call).into(), at) - .await?) + // TODO: PRO-917 fix dry run + Ok(Bytes::from(vec![])) } }