Skip to content

Commit

Permalink
feat to check governance type (CarmineOptions#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
scobi7 committed Aug 5, 2024
1 parent f2a40a1 commit 17d5cdd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/upgrades.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ mod upgrades {
latest_upgrade: (u64, u64), // (prop_id, upgrade_type)
}


#[derive(starknet::Event, Drop)]
#[event]
enum Event {
Expand Down Expand Up @@ -142,7 +143,7 @@ mod upgrades {
};
self.proposal_applied.write(prop_id, true); // Mark the proposal as applied
let upgrade_type: u64 = contract_type.try_into().unwrap();
self.latest_upgrade.write((prop_id.try_into().unwrap(), upgrade_type));
self.latest_upgrade.write((prop_id.try_into().unwrap(), upgrade_type));
self
.emit(
Upgraded {
Expand All @@ -151,7 +152,5 @@ mod upgrades {
}
);
}

}

}

0 comments on commit 17d5cdd

Please sign in to comment.