Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizdave97 committed Jun 17, 2022
1 parent 67477d5 commit 9f36f59
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions frame/ibc/src/benchmarks/tendermint_benchmark_utils.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{routing::Context, Config};
use crate::{routing::Context, Config, MODULE_ID};
use core::{str::FromStr, time::Duration};
use frame_support::traits::Get;
use ibc::{
Expand Down Expand Up @@ -146,7 +146,7 @@ pub fn create_client_update() -> MsgUpdateAnyClient {
MsgUpdateAnyClient {
client_id: ClientId::new(ClientType::Tendermint, 0).unwrap(),
header: AnyHeader::Tendermint(create_tendermint_header()),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
}
}
// Proof generation process for all tendermint benchmarks
Expand Down Expand Up @@ -263,7 +263,7 @@ pub fn create_conn_open_try<T: Config>() -> (ConsensusState, MsgConnectionOpenTr
)
.unwrap(),
delay_period,
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand Down Expand Up @@ -366,7 +366,7 @@ pub fn create_conn_open_ack<T: Config>() -> (ConsensusState, MsgConnectionOpenAc
)
.unwrap(),
version: ConnVersion::default(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand Down Expand Up @@ -454,7 +454,7 @@ pub fn create_conn_open_confirm<T: Config>() -> (ConsensusState, MsgConnectionOp
Height::new(0, 2),
)
.unwrap(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand Down Expand Up @@ -517,7 +517,7 @@ pub fn create_chan_open_try() -> (ConsensusState, MsgChannelOpenTry) {
counterparty_version: ChannelVersion::default(),
proofs: Proofs::new(buf.try_into().unwrap(), None, None, None, Height::new(0, 2))
.unwrap(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand Down Expand Up @@ -573,7 +573,7 @@ pub fn create_chan_open_ack() -> (ConsensusState, MsgChannelOpenAck) {
counterparty_version: ChannelVersion::default(),
proofs: Proofs::new(buf.try_into().unwrap(), None, None, None, Height::new(0, 2))
.unwrap(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand Down Expand Up @@ -627,7 +627,7 @@ pub fn create_chan_open_confirm() -> (ConsensusState, MsgChannelOpenConfirm) {
channel_id: ChannelId::new(0),
proofs: Proofs::new(buf.try_into().unwrap(), None, None, None, Height::new(0, 2))
.unwrap(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand All @@ -637,7 +637,7 @@ pub fn create_chan_close_init() -> MsgChannelCloseInit {
MsgChannelCloseInit {
port_id,
channel_id: ChannelId::new(0),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
}
}

Expand Down Expand Up @@ -690,7 +690,7 @@ pub fn create_chan_close_confirm() -> (ConsensusState, MsgChannelCloseConfirm) {
channel_id: Default::default(),
proofs: Proofs::new(buf.try_into().unwrap(), None, None, None, Height::new(0, 2))
.unwrap(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand Down Expand Up @@ -755,7 +755,7 @@ where
packet,
proofs: Proofs::new(buf.try_into().unwrap(), None, None, None, Height::new(0, 2))
.unwrap(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand Down Expand Up @@ -825,7 +825,7 @@ where
acknowledgement: ack.into(),
proofs: Proofs::new(buf.try_into().unwrap(), None, None, None, Height::new(0, 2))
.unwrap(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}
Expand Down Expand Up @@ -890,7 +890,7 @@ where
next_sequence_recv: Default::default(),
proofs: Proofs::new(buf.try_into().unwrap(), None, None, None, Height::new(0, 2))
.unwrap(),
signer: Signer::from_str("relayer").unwrap(),
signer: Signer::from_str(MODULE_ID).unwrap(),
},
)
}

0 comments on commit 9f36f59

Please sign in to comment.