feat: implement GetCurrentPParams local state query (#322)

This commit is contained in:
Alexsander Falcucci 2024-01-08 12:38:39 +01:00 committed by GitHub
parent a6a6ffcfed
commit 14e0809ea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 251 additions and 3 deletions

View file

@ -39,7 +39,9 @@ async fn do_localstate_query(client: &mut NodeClient) {
let addrx: Address = Address::from_bech32(&addrx).unwrap();
let addrx: Addr = addrx.to_vec().into();
let addry = "008c5bf0f2af6f1ef08bb3f6ec702dd16e1c514b7e1d12f7549b47db9f4d943c7af0aaec774757d4745d1a2c8dd3220e6ec2c9df23f757a2f8".to_string();
let addry =
"008c5bf0f2af6f1ef08bb3f6ec702dd16e1c514b7e1d12f7549b47db9f4d943c7af0aaec774757d4745d1a2c8dd3220e6ec2c9df23f757a2f8"
.to_string();
let addry: Address = Address::from_hex(&addry).unwrap();
let addry: Addr = addry.to_vec().into();
@ -49,6 +51,9 @@ async fn do_localstate_query(client: &mut NodeClient) {
.unwrap();
info!("result: {:?}", result);
let result = queries_v16::get_current_pparams(client, era).await.unwrap();
println!("result: {:?}", result);
client.send_release().await.unwrap();
}