diff --git a/Cargo.lock b/Cargo.lock index 5a2775ba..508c18dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -206,7 +206,6 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-storage-plus 1.1.0", - "cw-xcall 0.2.1", "cw-xcall-lib 0.1.0", "cw2 1.0.1", "getrandom", diff --git a/contracts/cosmwasm-vm/cw-cluster-connection/src/contract.rs b/contracts/cosmwasm-vm/cw-cluster-connection/src/contract.rs index b4653cac..eeae2ad6 100644 --- a/contracts/cosmwasm-vm/cw-cluster-connection/src/contract.rs +++ b/contracts/cosmwasm-vm/cw-cluster-connection/src/contract.rs @@ -1,4 +1,3 @@ -use common::rlp; use cosmwasm_std::{coins, Addr, BankMsg, Event, Uint128}; use cw_xcall_lib::network_address::NetId; diff --git a/contracts/cosmwasm-vm/cw-cluster-connection/src/helper.rs b/contracts/cosmwasm-vm/cw-cluster-connection/src/helper.rs index 79e777b9..6436a2ef 100644 --- a/contracts/cosmwasm-vm/cw-cluster-connection/src/helper.rs +++ b/contracts/cosmwasm-vm/cw-cluster-connection/src/helper.rs @@ -22,17 +22,6 @@ pub fn keccak256(input: &[u8]) -> Keccak256 { hasher } -pub fn to_truncated_le_bytes(n: u128) -> Vec { - let bytes = n.to_le_bytes(); - let trimmed_bytes = bytes - .iter() - .rev() - .skip_while(|&&b| b == 0) - .copied() - .collect::>(); - trimmed_bytes.into_iter().rev().collect() -} - impl<'a> ClusterConnection<'a> { pub fn ensure_admin(&self, store: &dyn Storage, address: Addr) -> Result<(), ContractError> { let admin = self.get_admin(store)?; diff --git a/contracts/cosmwasm-vm/cw-cluster-connection/src/types.rs b/contracts/cosmwasm-vm/cw-cluster-connection/src/types.rs index 7eb6b5b2..0457d8fa 100644 --- a/contracts/cosmwasm-vm/cw-cluster-connection/src/types.rs +++ b/contracts/cosmwasm-vm/cw-cluster-connection/src/types.rs @@ -1,5 +1,4 @@ use super::*; -use common::rlp::{self, Encodable}; #[cw_serde] pub struct InstantiateMsg { diff --git a/contracts/cosmwasm-vm/cw-cluster-connection/tests/test.rs b/contracts/cosmwasm-vm/cw-cluster-connection/tests/test.rs index 7cdbc2c0..2bd9bb5b 100644 --- a/contracts/cosmwasm-vm/cw-cluster-connection/tests/test.rs +++ b/contracts/cosmwasm-vm/cw-cluster-connection/tests/test.rs @@ -3,7 +3,6 @@ use cluster_connection::{ execute, msg::ExecuteMsg, state::ClusterConnection, types::InstantiateMsg, }; use cluster_connection::{keccak256, SignableMsg}; -use common::rlp; use cosmwasm_std::{testing::mock_env, ContractResult, Env}; use cosmwasm_std::{ testing::{mock_dependencies, mock_info, MockApi, MockQuerier},