Fix tests for multi-finality-verifier
@@ -834,8 +834,10 @@ mod tests {
use frame_support::weights::PostDispatchInfo;
use frame_support::{assert_err, assert_noop, assert_ok};
use sp_runtime::{Digest, DigestItem, DispatchError};
- use sp_std::convert::TryFrom;
- use t3rn_primitives::{GatewaySysProps, GatewayType, GatewayVendor};
+
+ use t3rn_primitives::bridges::test_utils as bp_test_utils;
+ use t3rn_primitives::GatewaySysProps;
+ use t3rn_primitives::{GatewayType, GatewayVendor};
fn teardown_substrate_bridge() {
let default_gateway: ChainId = *b"gate";
@@ -881,7 +883,11 @@ mod tests {
is_halted: false,
};
- let gateway_sys_props = GatewaySysProps::try_from(&gateway_id)?;
+ let gateway_sys_props = GatewaySysProps {
+ ss58_format: 0,
+ token_symbol: Encode::encode(""),
+ token_decimals: 0,
+ };
let _ = pallet_xdns::Pallet::<TestRuntime>::add_new_xdns_record(
RawOrigin::Root.into(),
@@ -1087,8 +1093,8 @@ mod tests {
#[test]
fn init_can_initialize_pallet_for_multiple_gateway_but_only_once_per_each_gateway() {
run_test(|| {
- let gateway_a: ChainId = *b"pdot";
- let gateway_b: ChainId = *b"ksma";
+ let gateway_a: ChainId = *b"rlta";
+ let gateway_b: ChainId = *b"rltb";
initialize_substrate_bridge_for_gateway(gateway_a);
initialize_substrate_bridge_for_gateway(gateway_b);
