Skip to content

Commit

Permalink
Minor changes that were left while rebasing
Browse files Browse the repository at this point in the history
Signed-off-by: lovesh <[email protected]>
  • Loading branch information
lovesh committed May 12, 2020
1 parent 082ccd7 commit 8e8ff20
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
use dock_testnet_runtime::{
AccountId, AuraConfig, BalancesConfig, GenesisConfig, GrandpaConfig, Signature,
AuraConfig, BalancesConfig, GenesisConfig, GrandpaConfig,
SudoConfig, SystemConfig, WASM_BINARY,
};
use sp_finality_grandpa::AuthorityId as GrandpaId;
use sc_service::ChainType;
use sp_consensus_aura::sr25519::AuthorityId as AuraId;
use sp_core::crypto::Ss58Codec;
use sp_core::{sr25519, Pair, Public};
use sp_runtime::traits::{IdentifyAccount, Verify};
use sp_runtime::{
traits::{IdentifyAccount, Verify},
MultiSignature,
};

type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId;

// Note this is the URL for the telemetry server
//const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
Expand All @@ -22,7 +27,7 @@ pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Pu
.public()
}

type AccountPublic = <Signature as Verify>::Signer;
type AccountPublic = <MultiSignature as Verify>::Signer;

/// Helper function to generate an account ID from seed
pub fn get_account_id_from_seed<TPublic: Public>(seed: &str) -> AccountId
Expand Down
1 change: 1 addition & 0 deletions runtime/src/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use frame_support::{
};
use system::ensure_signed;
use codec::{Decode, Encode};
use alloc::vec::Vec;

use crate::did::{self, Did, DidSignature};

Expand Down
Empty file removed src/main.rs
Empty file.
Empty file removed src/service.rs
Empty file.

0 comments on commit 8e8ff20

Please sign in to comment.