Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
ljoss17 committed Aug 26, 2024
1 parent af93eb6 commit fcf2b23
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 42 deletions.
2 changes: 0 additions & 2 deletions crates/relayer-types/src/applications/transfer/packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ impl TryFrom<RawPacketDataV2> for PacketDataV2 {
.into_iter()
.map(|token| token.try_into())
.collect::<Result<Vec<_>, _>>()?;
//let denom = PrefixedDenom::from_str(&raw_pkt_data.denom)?;
//let amount = Amount::from_str(&raw_pkt_data.amount)?;
let memo = Some(raw_pkt_data.memo).filter(|m| !m.is_empty());
Ok(Self {
tokens,
Expand Down
7 changes: 0 additions & 7 deletions crates/relayer-types/src/core/ics23_commitment/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,10 @@ use ics23::{
NonExistenceProof,
};

//use crate::core::ics23_commitment::commitment::{CommitmentPrefix, CommitmentRoot};
use crate::core::ics23_commitment::commitment::CommitmentRoot;
use crate::core::ics23_commitment::error::Error;
use crate::core::ics23_commitment::specs::ProofSpecs;

/*pub fn apply_prefix(prefix: &CommitmentPrefix, mut path: Vec<String>) -> MerklePath {
let mut key_path: Vec<String> = vec![format!("{prefix:?}")];
key_path.append(&mut path);
MerklePath { key_path }
}*/

impl From<CommitmentRoot> for MerkleRoot {
fn from(root: CommitmentRoot) -> Self {
Self {
Expand Down
32 changes: 0 additions & 32 deletions crates/relayer/src/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,38 +186,6 @@ pub fn build_transfer_message(
}
}

/*pub fn build_transfer_message_v2(
src_port_id: PortId,
src_channel_id: ChannelId,
tokens: Vec<(Amount, String)>,
sender: Signer,
receiver: Signer,
timeout_height: TimeoutHeight,
timeout_timestamp: Timestamp,
memo: Option<String>,
) -> Any {
let tokens = tokens
.iter()
.map(|(amount, denom)| Coin {
denom: denom.clone(),
amount: amount.to_string(),
})
.collect();
let msg = MsgTransfer {
source_port: src_port_id,
source_channel: src_channel_id,
token: None,
sender,
receiver,
timeout_height,
timeout_timestamp,
memo,
tokens,
};
msg.to_any()
}*/

pub fn build_transfer_messages<SrcChain: ChainHandle, DstChain: ChainHandle>(
src_chain: &SrcChain, // the chain whose account is debited
dst_chain: &DstChain, // the chain whose account eventually gets credited
Expand Down
2 changes: 1 addition & 1 deletion tools/integration-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ new-register-interchain-account = []
authz = []
benchmark = []
no-denom-trace = []
ics20-v2 = []
ics20-v2 = []

[[bin]]
name = "test_setup_with_binary_channel"
Expand Down

0 comments on commit fcf2b23

Please sign in to comment.