ic-query 0.91.0

Internet Computer query library for CloudEngine, NNS, SNS, ICRC, system canisters, and public network metadata
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

#[test]
fn mainnet_policy_preserves_the_rejected_network() {
    assert_eq!(
        enforce_mainnet_network_with(MAINNET_NETWORK, |network| network),
        Ok(())
    );
    assert_eq!(
        enforce_mainnet_network_with("local", |network| network),
        Err("local".to_string())
    );
}