Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Oct 30, 2024
1 parent 593c182 commit 48f5e19
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bridges/snowbridge/pallets/inbound-queue-v2/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ fn test_submit_happy_path() {
.into(),
nonce: 1,
message_id: [
58, 236, 7, 182, 64, 252, 7, 252, 177, 254, 185, 191, 57, 48, 220, 69, 171, 153,
231, 247, 25, 215, 205, 176, 138, 103, 145, 77, 54, 174, 46, 98,
183, 243, 1, 130, 170, 254, 104, 45, 116, 181, 146, 237, 14, 139, 138, 89, 43, 166,
182, 24, 163, 222, 112, 238, 215, 83, 21, 160, 24, 88, 112, 9,
],
fee_burned: 110000000000,
}
Expand Down
5 changes: 4 additions & 1 deletion bridges/snowbridge/primitives/router/src/outbound/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,10 @@ mod tests {
use frame_support::parameter_types;
use hex_literal::hex;
use snowbridge_core::{
outbound::v1::{Fee, SendError, SendMessageFeeProvider},
outbound::{
v1::{Fee, SendError},
SendMessageFeeProvider,
},
AgentIdOf,
};
use sp_std::default::Default;
Expand Down
5 changes: 4 additions & 1 deletion bridges/snowbridge/primitives/router/src/outbound/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,10 @@ mod tests {
use frame_support::parameter_types;
use hex_literal::hex;
use snowbridge_core::{
outbound::v2::{Fee, SendError, SendMessageFeeProvider},
outbound::{
v2::{Fee, SendError},
SendMessageFeeProvider,
},
AgentIdOf,
};
use sp_std::default::Default;
Expand Down
5 changes: 4 additions & 1 deletion bridges/snowbridge/runtime/runtime-common/src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use crate::XcmExportFeeToSibling;
use frame_support::{parameter_types, sp_runtime::testing::H256};
use snowbridge_core::outbound::v1::{Fee, Message, SendError, SendMessage, SendMessageFeeProvider};
use snowbridge_core::outbound::{
v1::{Fee, Message, SendError, SendMessage},
SendMessageFeeProvider,
};
use xcm::prelude::{
Asset, Assets, Here, Kusama, Location, NetworkId, Parachain, XcmContext, XcmError, XcmHash,
XcmResult,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn transfer_and_transact_in_same_xcm(
let require_weight_at_most = Weight::from_parts(1000000000, 200000);
// xcm to be executed at dest
let xcm_on_dest = Xcm(vec![
Transact { origin_kind: OriginKind::Xcm, require_weight_at_most, call },
Transact { origin_kind: OriginKind::Xcm, call },
ExpectTransactStatus(MaybeErrorCode::Success),
// since this is the last hop, we don't need to further use any assets previously
// reserved for fees (there are no further hops to cover transport fees for); we
Expand Down

0 comments on commit 48f5e19

Please sign in to comment.