Skip to content

Commit

Permalink
ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Mar 9, 2023
1 parent 8934755 commit 895391b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
1 change: 0 additions & 1 deletion dkg-test-suite/scripts/submitProposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ async function run() {
'0x0000000000000000000000000000000000000000000000000000000000000000',
srcResourceId
);
console.log(nonce);
console.log('Proposal Bytes:', u8aToHex(anchorUpdateProposal.toU8a()));
assert(
anchorUpdateProposal.toU8a().length === 104,
Expand Down
7 changes: 5 additions & 2 deletions pallets/bridge-registry/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
],
}
.assimilate_storage(&mut storage);
let _ = pallet_bridge_registry::GenesisConfig::<Test> { phantom: Default::default() }
.assimilate_storage(&mut storage);
let _ = pallet_bridge_registry::GenesisConfig::<Test> {
phantom: Default::default(),
bridges: vec![],
}
.assimilate_storage(&mut storage);

storage.into()
}
2 changes: 1 addition & 1 deletion pallets/bridge-registry/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ mod serde_ {
where
S: Serializer,
{
serializer.serialize_str(&hex::encode(&self.0.encode()))
serializer.serialize_str(&hex::encode(self.0.encode()))
}
}
}
Expand Down
15 changes: 4 additions & 11 deletions standalone/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,15 @@ use dkg_standalone_runtime::{
MaxNominations, Perbill, SessionConfig, Signature, StakerStatus, StakingConfig, SudoConfig,
SystemConfig, WASM_BINARY,
};
use pallet_bridge_registry::types::BridgeMetadata;
use hex_literal::hex;
use pallet_bridge_registry::types::{BridgeInfo, BridgeMetadata, SerdeData};
use pallet_im_online::sr25519::AuthorityId as ImOnlineId;
use sc_service::ChainType;
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::{bounded_vec, sr25519, Pair, Public};
use pallet_bridge_registry::types::SerdeData;
use sp_finality_grandpa::AuthorityId as GrandpaId;
use sp_runtime::traits::{IdentifyAccount, Verify};
use std::str::FromStr;
use pallet_bridge_registry::types::BridgeInfo;

// The URL for the telemetry server.
// const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
Expand Down Expand Up @@ -133,9 +131,7 @@ pub fn development_config() -> Result<ChainSpec, String> {
get_account_id_from_seed::<sr25519::Public>("Ferdie//stash"),
],
// Initial Chain Ids
vec![
CHAIN_ID_HERMES, CHAIN_ID_ATHENA
],
vec![CHAIN_ID_HERMES, CHAIN_ID_ATHENA],
// Initial resource Ids
vec![
(RESOURCE_ID_HERMES_ATHENA, Default::default()),
Expand Down Expand Up @@ -207,9 +203,7 @@ pub fn local_testnet_config() -> Result<ChainSpec, String> {
}))
.collect(),
// Initial Chain Ids
vec![
CHAIN_ID_HERMES, CHAIN_ID_ATHENA
],
vec![CHAIN_ID_HERMES, CHAIN_ID_ATHENA],
// Initial resource Ids
vec![
(RESOURCE_ID_HERMES_ATHENA, Default::default()),
Expand Down Expand Up @@ -375,8 +369,7 @@ fn testnet_genesis(
resource_ids: bounded_vec![RESOURCE_ID_HERMES_ATHENA, RESOURCE_ID_ATHENA_HERMES],
info: BridgeInfo {
additional: Default::default(),
display: SerdeData::from_str("hermes-athena")
.unwrap()
display: SerdeData::from_str("hermes-athena").unwrap()
}
}],
..Default::default()
Expand Down

0 comments on commit 895391b

Please sign in to comment.