Support account_nextIndex RPC. (#460)

* Use node-rpc extensions to support account_nextIndex.

* Remove todo.

* Update lock.

* Use new srml_system_rpc crate.

* Update to substrate=master

* Update lockfile.

* Update to polkadot-master.

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
Tomasz Drwięga
2019-10-23 13:17:53 +02:00
committed by Gavin Wood
parent 203cd74466
commit 8dc443dc5b
7 changed files with 119 additions and 0 deletions
+6
View File
@@ -759,4 +759,10 @@ impl_runtime_apis! {
SessionKeys::generate(seed)
}
}
impl system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Nonce> for Runtime {
fn account_nonce(account: AccountId) -> Nonce {
System::account_nonce(account)
}
}
}