Skip to content

Commit

Permalink
fix unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed May 9, 2024
1 parent e43b753 commit b3a1163
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 10 additions & 6 deletions ibc-testkit/src/relayer/context.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
use ibc::apps::transfer::types::msgs::transfer::MsgTransfer;
use ibc::apps::transfer::types::packet::PacketData;
use ibc::core::channel::types::packet::Packet;
use ibc::core::client::context::client_state::ClientStateValidation;
use ibc::core::handler::types::events::IbcEvent;
use ibc::core::host::types::identifiers::{ChannelId, ClientId, ConnectionId, PortId};
use ibc::core::host::types::path::ChannelEndPath;
use ibc::core::host::ValidationContext;
use ibc::primitives::{Signer, Timestamp};
use ibc::primitives::Signer;

use crate::context::TestContext;
use crate::hosts::{HostClientState, TestHost};
use crate::relayer::utils::TypedRelayerOps;
use crate::testapp::ibc::applications::transfer::types::DummyTransferModule;
use crate::testapp::ibc::core::types::DefaultIbcStore;

/// A relayer context that allows interaction between two [`TestContext`] instances.
Expand Down Expand Up @@ -472,6 +468,14 @@ where
chan_id_on_a: ChannelId,

Check warning on line 468 in ibc-testkit/src/relayer/context.rs

View workflow job for this annotation

GitHub Actions / nightly_fmt

Diff in /home/runner/work/ibc-rs/ibc-rs/ibc-testkit/src/relayer/context.rs
signer: Signer,
) -> Packet {
use crate::testapp::ibc::applications::transfer::types::DummyTransferModule;

use ibc::apps::transfer::handler::send_transfer;
use ibc::apps::transfer::types::msgs::transfer::MsgTransfer;
use ibc::apps::transfer::types::packet::PacketData;
use ibc::core::handler::types::events::IbcEvent;

Check warning on line 476 in ibc-testkit/src/relayer/context.rs

View workflow job for this annotation

GitHub Actions / nightly_fmt

Diff in /home/runner/work/ibc-rs/ibc-rs/ibc-testkit/src/relayer/context.rs
use ibc::primitives::Timestamp;

// generate packet for DummyTransferModule
let packet_data = PacketData {
token: "1000uibc".parse().expect("valid prefixed coin"),
Expand All @@ -493,7 +497,7 @@ where
};

// module creates the send_packet
ibc::apps::transfer::handler::send_transfer(
send_transfer(
self.get_ctx_a_mut().ibc_store_mut(),
&mut DummyTransferModule,
msg,
Expand Down
3 changes: 2 additions & 1 deletion ibc-testkit/src/relayer/integration.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use ibc::core::client::context::client_state::ClientStateValidation;
use ibc::core::handler::types::events::IbcEvent;
use ibc::core::host::types::identifiers::{ChannelId, ConnectionId, PortId};

use crate::context::TestContext;
Expand Down Expand Up @@ -87,6 +86,8 @@ where

#[cfg(feature = "serde")]
{
use ibc::core::handler::types::events::IbcEvent;

{
// ------------------------
// send packet from A to B
Expand Down

0 comments on commit b3a1163

Please sign in to comment.