hedera 0.36.0

The SDK for interacting with Hedera Hashgraph.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use hedera::NodeAddressBookQuery;

use crate::common::TestEnvironment;

// a fairly trivial function, but one worth having because it actually tests mirror-net.
#[tokio::test]
async fn query_address_book() -> anyhow::Result<()> {
    let TestEnvironment { client, config } = crate::common::setup_global();

    if config.is_local {
        return Ok(());
    }

    let _ = NodeAddressBookQuery::new().execute(&client).await?;

    Ok(())
}