mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
Runtime APIs; don't ask for validation hash anywhere except new_static (#947)
* remove validation hash where not wanted * .into() * fix example * cargo fmt
This commit is contained in:
@@ -68,11 +68,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
println!("AccountNonceApi_account_nonce for Alice: {:?}", nonce);
|
||||
|
||||
// Dynamic calls.
|
||||
let runtime_api_call = subxt::dynamic::runtime_api_call(
|
||||
"Metadata_metadata_versions",
|
||||
Vec::<Value<()>>::new(),
|
||||
None,
|
||||
);
|
||||
let runtime_api_call =
|
||||
subxt::dynamic::runtime_api_call("Metadata_metadata_versions", Vec::<Value<()>>::new());
|
||||
let versions = api
|
||||
.runtime_api()
|
||||
.at_latest()
|
||||
|
||||
Reference in New Issue
Block a user