Skip to content

Commit

Permalink
Temporarily allow dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jan 22, 2025
1 parent 179c2ba commit a94e6b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions domains/client/domain-operator/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ fn number_of(consensus_node: &MockConsensusNode, block_hash: Hash) -> u32 {

/// Generate a self-contained EVM domain extrinsic, which can be passed to
/// `runtime_api().check_extrinsics_and_do_pre_dispatch()`.
#[allow(dead_code)]
pub fn generate_eth_domain_sc_extrinsic(tx: EthereumTransaction) -> EvmUncheckedExtrinsic {
let call = pallet_ethereum::Call::<TestRuntime>::transact { transaction: tx };
fp_self_contained::UncheckedExtrinsic::new(RuntimeCall::Ethereum(call), None).unwrap()
}

/// Generate a pallet-evm call, which can be passed to `construct_and_send_extrinsic_with()`.
#[allow(dead_code)]
pub fn generate_evm_domain_call_extrinsic(
account_info: AccountInfo,
nonce: Option<U256>,
Expand Down

0 comments on commit a94e6b3

Please sign in to comment.