Files
pezkuwi-subxt/testing/integration-tests/src/full_client/frame/timestamp.rs
T
Alexandru Vasile 1a647500a7 Use default subxt-proc-macro timeout
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
2024-03-05 15:29:38 +02:00

22 lines
528 B
Rust

// Copyright 2019-2023 Parity Technologies (UK) Ltd.
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
// see LICENSE for license details.
use crate::{node_runtime, subxt_test, test_context};
#[subxt_test]
async fn storage_get_current_timestamp() {
let ctx = test_context().await;
let api = ctx.client();
let timestamp = api
.storage()
.at_latest()
.await
.unwrap()
.fetch(&node_runtime::storage().timestamp().now())
.await;
assert!(timestamp.is_ok())
}