mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-05 18:31:07 +00:00
Block: Implement clone (#2047)
This commit is contained in:
1 parent
fdc42f088b
commit
8e162036a1
3 files changed
+16
-1
No files matched your search
@@ -205,6 +205,10 @@ async fn fetch_block_and_decode_extrinsic_details() {
|
||||
// Now, separately, download that block. Let's see what it contains..
|
||||
let block_hash = in_block.block_hash();
|
||||
let block = api.blocks().at(block_hash).await.unwrap();
|
||||
|
||||
// Ensure that we can clone the block.
|
||||
block.clone();
|
||||
|
||||
let extrinsics = block.extrinsics().await.unwrap();
|
||||
|
||||
assert_eq!(extrinsics.block_hash(), block_hash);
|
||||
|
||||
Reference in new issue
Block a user