Skip to content

Commit

Permalink
[#51] Ensured that reconfiguration.move::last_reconfiguration_time is…
Browse files Browse the repository at this point in the history
… set properly when genesis ends.
  • Loading branch information
isaacdoidge committed Aug 20, 2024
1 parent b56e74e commit 1fa2a7f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ module supra_framework::reconfiguration {
let config_ref = borrow_global_mut<Configuration>(@supra_framework);
assert!(config_ref.epoch == 0 && config_ref.last_reconfiguration_time == 0, error::invalid_state(ECONFIGURATION));
config_ref.epoch = 1;
config_ref.last_reconfiguration_time = timestamp::now_microseconds();

if (std::features::module_event_migration_enabled()) {
event::emit(
Expand Down

0 comments on commit 1fa2a7f

Please sign in to comment.