add account nonce api to glutton (#2714)

This commit is contained in:
Ignacio Palacios
2023-06-08 14:45:55 +02:00
committed by GitHub
parent f8cc95c6b9
commit 5a0f9d243c
3 changed files with 9 additions and 0 deletions
@@ -352,6 +352,12 @@ impl_runtime_apis! {
}
}
impl frame_system_rpc_runtime_api::AccountNonceApi<Block, AccountId, Index> for Runtime {
fn account_nonce(account: AccountId) -> Index {
System::account_nonce(account)
}
}
#[cfg(feature = "runtime-benchmarks")]
impl frame_benchmarking::Benchmark<Block> for Runtime {
fn benchmark_metadata(extra: bool) -> (