fix: use weight in signer set (not number of slots)

This commit is contained in:
Brice Dobry
2024-02-09 16:02:50 -05:00
parent b2413c1dfb
commit 85b0ea2632

View File

@@ -274,7 +274,7 @@ impl NakamotoSigners {
"signer".into(),
Value::Principal(PrincipalData::from(signing_address)),
),
("weight".into(), Value::UInt(signer.slots.into())),
("weight".into(), Value::UInt(signer.stacked_amt.into())),
])
.expect(
"BUG: Failed to construct `{ signer: principal, num-slots: u64 }` tuple",