mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
BlockId removal: &Hash to Hash (#12626)
It changes &Block::Hash argument to Block::Hash. This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292)
This commit is contained in:
committed by
GitHub
parent
7c4bfc9749
commit
1ed70004e7
@@ -206,7 +206,7 @@ async fn should_return_finalized_hash() {
|
||||
assert_eq!(res, client.genesis_hash());
|
||||
|
||||
// finalize
|
||||
client.finalize_block(&block_hash, None).unwrap();
|
||||
client.finalize_block(block_hash, None).unwrap();
|
||||
let res: H256 = api.call("chain_getFinalizedHead", EmptyParams::new()).await.unwrap();
|
||||
assert_eq!(res, block_hash);
|
||||
}
|
||||
@@ -235,7 +235,7 @@ async fn test_head_subscription(method: &str) {
|
||||
let block = client.new_block(Default::default()).unwrap().build().unwrap().block;
|
||||
let block_hash = block.hash();
|
||||
client.import(BlockOrigin::Own, block).await.unwrap();
|
||||
client.finalize_block(&block_hash, None).unwrap();
|
||||
client.finalize_block(block_hash, None).unwrap();
|
||||
sub
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user