Skip to content

Commit

Permalink
temp-fix: dry_run always succeeds (#4130)
Browse files Browse the repository at this point in the history
temp fix for dry_run
  • Loading branch information
marcellorigotti authored Oct 20, 2023
1 parent d34c3f4 commit 51aaed1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions api/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -147,14 +146,11 @@ impl<
{
async fn dry_run(
&self,
call: RuntimeCall,
at: Option<state_chain_runtime::Hash>,
_call: RuntimeCall,
_at: Option<state_chain_runtime::Hash>,
) -> Result<Bytes> {
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![]))
}
}

Expand Down

0 comments on commit 51aaed1

Please sign in to comment.