Update default runtime types to match substrate, format code (#34)

* Update default runtime types to match latest substrate

* Format code
This commit is contained in:
Andrew Jones
2019-11-15 17:57:38 +00:00
committed by GitHub
parent b39ff1771a
commit 593646c2bc
7 changed files with 45 additions and 36 deletions
+4 -3
View File
@@ -23,9 +23,10 @@ use runtime_primitives::{
generic::Header,
traits::{
BlakeTwo256,
IdentifyAccount,
Verify,
},
AnySignature,
MultiSignature,
};
/// Concrete type definitions compatible with those in the default substrate `node_runtime`
@@ -42,13 +43,13 @@ impl System for DefaultNodeRuntime {
type BlockNumber = u32;
type Hash = substrate_primitives::H256;
type Hashing = BlakeTwo256;
type AccountId = <AnySignature as Verify>::Signer;
type AccountId = <<MultiSignature as Verify>::Signer as IdentifyAccount>::AccountId;
type Address = paint_indices::address::Address<Self::AccountId, u32>;
type Header = Header<Self::BlockNumber, BlakeTwo256>;
}
impl Balances for DefaultNodeRuntime {
type Balance = u64;
type Balance = u128;
}
impl Contracts for DefaultNodeRuntime {}