mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 23:27:56 +00:00
added at_latest (#900)
* added at_latest * change some documentation * remove inline
This commit is contained in:
@@ -111,7 +111,7 @@ async fn fetch_keys() {
|
||||
let addr = node_runtime::storage().system().account_root();
|
||||
let keys = api
|
||||
.storage()
|
||||
.at(None)
|
||||
.at_latest()
|
||||
.await
|
||||
.unwrap()
|
||||
.fetch_keys(&addr.to_root_bytes(), 4, None)
|
||||
@@ -128,7 +128,7 @@ async fn test_iter() {
|
||||
let addr = node_runtime::storage().system().account_root();
|
||||
let mut iter = api
|
||||
.storage()
|
||||
.at(None)
|
||||
.at_latest()
|
||||
.await
|
||||
.unwrap()
|
||||
.iter(addr, 10)
|
||||
|
||||
Reference in New Issue
Block a user