Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

implement bitfield signing subsystem #1364

Merged
merged 17 commits into from
Jul 23, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
resolve type inference failure caused by multiple From impls
  • Loading branch information
coriolinus committed Jul 22, 2020
commit 7fc77805de5e5074a1b01037f8d4e3919e03e0e1
10 changes: 5 additions & 5 deletions availability-store/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ mod tests {
fn finalization_removes_unneeded() {
let relay_parent = [1; 32].into();

let para_id_1 = 5.into();
let para_id_2 = 6.into();
let para_id_1 = 5_u32.into();
let para_id_2 = 6_u32.into();

let mut candidate_1 = AbridgedCandidateReceipt::default();
let mut candidate_2 = AbridgedCandidateReceipt::default();
Expand Down Expand Up @@ -482,7 +482,7 @@ mod tests {
#[test]
fn erasure_coding() {
let relay_parent: Hash = [1; 32].into();
let para_id: ParaId = 5.into();
let para_id: ParaId = 5_u32.into();
let available_data = available_data(&[42; 8]);
let n_validators = 5;

Expand Down Expand Up @@ -555,11 +555,11 @@ mod tests {
let mut receipt_2 = AbridgedCandidateReceipt::default();


receipt_1.parachain_index = 1.into();
receipt_1.parachain_index = 1_u32.into();
receipt_1.commitments.erasure_root = erasure_root_1;
receipt_1.relay_parent = relay_parent;

receipt_2.parachain_index = 2.into();
receipt_2.parachain_index = 2_u32.into();
receipt_2.commitments.erasure_root = erasure_root_2;
receipt_2.relay_parent = relay_parent;

Expand Down