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:
James Wilson
2023-05-04 13:14:40 +01:00
committed by GitHub
parent 432e856c37
commit 53544a54b6
2 changed files with 5 additions and 18 deletions
+2 -5
View File
@@ -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()