Skip to content

Commit

Permalink
fix: *id not id
Browse files Browse the repository at this point in the history
  • Loading branch information
dandanlen committed Sep 27, 2023
1 parent 4fdc894 commit 8ff9c90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions state-chain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -843,9 +843,9 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomUpgrade {
nonce += 1;
PolkadotBroadcaster::threshold_sign_and_broadcast(
api_call.clone(),
pallet_cf_broadcast::RequestCallbacks::<Runtime, PolkadotInstance>::get(id),
pallet_cf_broadcast::RequestCallbacks::<Runtime, PolkadotInstance>::get(*id),
);
PolkadotBroadcaster::clean_up_broadcast_storage(id);
PolkadotBroadcaster::clean_up_broadcast_storage(*id);
}
// then the rotation
for (id, (ref mut api_call, _signature)) in api_calls.iter_mut() {
Expand All @@ -858,9 +858,9 @@ impl frame_support::traits::OnRuntimeUpgrade for CustomUpgrade {
nonce += 1;
PolkadotBroadcaster::threshold_sign_and_broadcast(
api_call.clone(),
pallet_cf_broadcast::RequestCallbacks::<Runtime, PolkadotInstance>::get(id),
pallet_cf_broadcast::RequestCallbacks::<Runtime, PolkadotInstance>::get(*id),
);
PolkadotBroadcaster::clean_up_broadcast_storage(id);
PolkadotBroadcaster::clean_up_broadcast_storage(*id);
}

Weight::zero()
Expand Down

0 comments on commit 8ff9c90

Please sign in to comment.