mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 19:37:56 +00:00
BlockId removal: &Hash to Hash (#6246)
* BlockId removal: &Hash to Hash It changes &Block::Hash argument to Block::Hash. This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292) * missing file corrected * update lockfile for {"substrate"} Co-authored-by: parity-processbot <>
This commit is contained in:
committed by
GitHub
parent
fea94a1365
commit
8057d45a67
@@ -60,7 +60,7 @@ fn basic_buy_fees_message_executes() {
|
||||
futures::executor::block_on(client.import(sp_consensus::BlockOrigin::Own, block))
|
||||
.expect("imports the block");
|
||||
|
||||
client.state_at(&block_hash).expect("state should exist").inspect_state(|| {
|
||||
client.state_at(block_hash).expect("state should exist").inspect_state(|| {
|
||||
assert!(polkadot_test_runtime::System::events().iter().any(|r| matches!(
|
||||
r.event,
|
||||
polkadot_test_runtime::RuntimeEvent::Xcm(pallet_xcm::Event::Attempted(
|
||||
@@ -101,7 +101,7 @@ fn query_response_fires() {
|
||||
.expect("imports the block");
|
||||
|
||||
let mut query_id = None;
|
||||
client.state_at(&block_hash).expect("state should exist").inspect_state(|| {
|
||||
client.state_at(block_hash).expect("state should exist").inspect_state(|| {
|
||||
for r in polkadot_test_runtime::System::events().iter() {
|
||||
match r.event {
|
||||
TestNotifier(QueryPrepared(q)) => query_id = Some(q),
|
||||
@@ -136,7 +136,7 @@ fn query_response_fires() {
|
||||
futures::executor::block_on(client.import(sp_consensus::BlockOrigin::Own, block))
|
||||
.expect("imports the block");
|
||||
|
||||
client.state_at(&block_hash).expect("state should exist").inspect_state(|| {
|
||||
client.state_at(block_hash).expect("state should exist").inspect_state(|| {
|
||||
assert!(polkadot_test_runtime::System::events().iter().any(|r| matches!(
|
||||
r.event,
|
||||
polkadot_test_runtime::RuntimeEvent::Xcm(pallet_xcm::Event::ResponseReady(
|
||||
@@ -184,7 +184,7 @@ fn query_response_elicits_handler() {
|
||||
.expect("imports the block");
|
||||
|
||||
let mut query_id = None;
|
||||
client.state_at(&block_hash).expect("state should exist").inspect_state(|| {
|
||||
client.state_at(block_hash).expect("state should exist").inspect_state(|| {
|
||||
for r in polkadot_test_runtime::System::events().iter() {
|
||||
match r.event {
|
||||
TestNotifier(NotifyQueryPrepared(q)) => query_id = Some(q),
|
||||
@@ -218,7 +218,7 @@ fn query_response_elicits_handler() {
|
||||
futures::executor::block_on(client.import(sp_consensus::BlockOrigin::Own, block))
|
||||
.expect("imports the block");
|
||||
|
||||
client.state_at(&block_hash).expect("state should exist").inspect_state(|| {
|
||||
client.state_at(block_hash).expect("state should exist").inspect_state(|| {
|
||||
assert!(polkadot_test_runtime::System::events().iter().any(|r| matches!(
|
||||
r.event,
|
||||
TestNotifier(ResponseReceived(
|
||||
|
||||
Reference in New Issue
Block a user