We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b46d98f commit 5aca34bCopy full SHA for 5aca34b
rs/nns/governance/src/governance/voting_power_snapshots.rs
@@ -67,8 +67,8 @@ fn insert_and_truncate<Value: Storable>(
67
impl VotingPowerSnapshots {
68
pub fn new(maps_memory: DefaultMemory, totals_memory: DefaultMemory) -> Self {
69
Self {
70
- neuron_id_to_voting_power_maps: StableBTreeMap::new(maps_memory),
71
- voting_power_totals: StableBTreeMap::new(totals_memory),
+ neuron_id_to_voting_power_maps: StableBTreeMap::init(maps_memory),
+ voting_power_totals: StableBTreeMap::init(totals_memory),
72
}
73
74
0 commit comments