From 9b0f4c62b3acb3c6a41fb37bcdb84a9d864c2dc6 Mon Sep 17 00:00:00 2001 From: Marcello Date: Thu, 19 Oct 2023 09:16:20 +0200 Subject: [PATCH] dry_run always returns OK() (#4124) --- api/lib/src/lib.rs | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/api/lib/src/lib.rs b/api/lib/src/lib.rs index b5b59cb92f..b92510ef8d 100644 --- a/api/lib/src/lib.rs +++ b/api/lib/src/lib.rs @@ -9,7 +9,6 @@ use cf_chains::{ 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; @@ -149,14 +148,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![])) } } @@ -173,11 +169,6 @@ pub trait OperatorApi: SignedExtrinsicApi + RotateSessionKeysApi + AuctionPhaseA address: EthereumAddress, executor: Option, ) -> Result { - // Are we in a current auction phase - if self.is_auction_phase().await? { - bail!("We are currently in an auction phase. Please wait until the auction phase is over."); - } - let (tx_hash, ..) = self .submit_signed_extrinsic(pallet_cf_funding::Call::redeem { amount, address, executor }) .await