mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 20:31:13 +00:00
Support embedded full/light node clients. (#91)
* Add support for light clients. * Add wasm toolchain to ci. * Fix ci tests. * Address review comments. * Use expect instead of unwrap. * Purge light client chain too. * Add README section.
This commit is contained in:
@@ -142,19 +142,17 @@ mod tests {
|
||||
});
|
||||
|
||||
#[async_std::test]
|
||||
#[ignore] // requires locally running substrate node
|
||||
async fn test_state_total_issuance() {
|
||||
env_logger::try_init().ok();
|
||||
let client = test_client().await;
|
||||
let (client, _) = test_client().await;
|
||||
let total_issuance = client.total_issuance(None).await.unwrap();
|
||||
assert_ne!(total_issuance, 0);
|
||||
}
|
||||
|
||||
#[async_std::test]
|
||||
#[ignore] // requires locally running substrate node
|
||||
async fn test_state_read_free_balance() {
|
||||
env_logger::try_init().ok();
|
||||
let client = test_client().await;
|
||||
let (client, _) = test_client().await;
|
||||
let account = AccountKeyring::Alice.to_account_id();
|
||||
let info = client.account(&account, None).await.unwrap();
|
||||
assert_ne!(info.data.free, 0);
|
||||
|
||||
Reference in New Issue
Block a user