From 7cc45337d9d881c49fe07f9715d82ac3d4876809 Mon Sep 17 00:00:00 2001 From: Maxim Shishmarev Date: Thu, 10 Oct 2024 12:30:33 +1100 Subject: [PATCH] chore: address clippy --- engine/src/witness/btc/smart_contract.rs | 2 +- state-chain/chains/src/btc/smart_contract_encoding.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/src/witness/btc/smart_contract.rs b/engine/src/witness/btc/smart_contract.rs index 950bbefa94..76f2ddf387 100644 --- a/engine/src/witness/btc/smart_contract.rs +++ b/engine/src/witness/btc/smart_contract.rs @@ -168,7 +168,7 @@ mod tests { const MOCK_DOT_ADDRESS: [u8; 32] = [9u8; 32]; const MOCK_SWAP_PARAMS: UtxoEncodedData = UtxoEncodedData { - output_asset: Asset::Btc, + output_asset: Asset::Dot, output_address: EncodedAddress::Dot(MOCK_DOT_ADDRESS), parameters: SharedCfParameters { retry_duration: 5, diff --git a/state-chain/chains/src/btc/smart_contract_encoding.rs b/state-chain/chains/src/btc/smart_contract_encoding.rs index 383a04d293..82add655a3 100644 --- a/state-chain/chains/src/btc/smart_contract_encoding.rs +++ b/state-chain/chains/src/btc/smart_contract_encoding.rs @@ -2,6 +2,7 @@ use crate::address::EncodedAddress; use cf_primitives::{Asset, AssetAmount, ForeignChain}; use codec::{Decode, Encode, MaxEncodedLen}; use scale_info::TypeInfo; +use sp_std::vec::Vec; use super::{BitcoinOp, BitcoinScript};