Fix up polkadot runtime

This commit is contained in:
Gav
2018-08-30 09:57:09 +02:00
parent 7aff0dc99b
commit 5138feb801
24 changed files with 512 additions and 456 deletions
+9 -9
View File
@@ -8,14 +8,14 @@ error-chain = "0.12"
polkadot-executor = { path = "../executor" }
polkadot-runtime = { path = "../runtime" }
polkadot-primitives = { path = "../primitives" }
substrate-codec = { git = "https://github.com/paritytech/substrate" }
substrate-runtime-io = { git = "https://github.com/paritytech/substrate" }
substrate-runtime-executive = { git = "https://github.com/paritytech/substrate" }
substrate-runtime-primitives = { git = "https://github.com/paritytech/substrate" }
substrate-client = { git = "https://github.com/paritytech/substrate" }
substrate-primitives = { git = "https://github.com/paritytech/substrate" }
substrate-executor = { git = "https://github.com/paritytech/substrate" }
substrate-state-machine = { git = "https://github.com/paritytech/substrate" }
substrate-codec = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
substrate-runtime-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
substrate-runtime-executive = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
substrate-runtime-primitives = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
substrate-client = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
substrate-primitives = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
substrate-executor = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
substrate-state-machine = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
[dev-dependencies]
substrate-keyring = { git = "https://github.com/paritytech/substrate" }
substrate-keyring = { git = "https://github.com/paritytech/substrate", branch = "polkadot" }
+1 -1
View File
@@ -121,7 +121,7 @@ impl<B: LocalBackend<Block, KeccakHasher, RlpCodec>> PolkadotApi for Client<B, L
}
fn lookup(&self, at: &BlockId, address: Address) -> Result<Option<AccountId>> {
with_runtime!(self, at, || <::runtime::Staking as AuxLookup>::lookup(address).ok())
with_runtime!(self, at, || <::runtime::Balances as AuxLookup>::lookup(address).ok())
}
fn active_parachains(&self, at: &BlockId) -> Result<Vec<ParaId>> {