Skip to content

Commit

Permalink
chore: unused function removed
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju committed Dec 11, 2024
1 parent e90a4e1 commit 361dcaf
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use common::rlp;
use cosmwasm_std::{coins, Addr, BankMsg, Event, Uint128};
use cw_xcall_lib::network_address::NetId;

Expand Down
11 changes: 0 additions & 11 deletions contracts/cosmwasm-vm/cw-cluster-connection/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@ pub fn keccak256(input: &[u8]) -> Keccak256 {
hasher
}

pub fn to_truncated_le_bytes(n: u128) -> Vec<u8> {
let bytes = n.to_le_bytes();
let trimmed_bytes = bytes
.iter()
.rev()
.skip_while(|&&b| b == 0)
.copied()
.collect::<Vec<u8>>();
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)?;
Expand Down
1 change: 0 additions & 1 deletion contracts/cosmwasm-vm/cw-cluster-connection/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use super::*;
use common::rlp::{self, Encodable};

#[cw_serde]
pub struct InstantiateMsg {
Expand Down
1 change: 0 additions & 1 deletion contracts/cosmwasm-vm/cw-cluster-connection/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 361dcaf

Please sign in to comment.