Skip to content

Commit

Permalink
possibly fix consensus reward initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 4, 2023
1 parent 5157d92 commit 157c96b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ module ol_framework::proof_of_fee {
// from supply data.
public fun genesis_migrate_reward(vm: &signer, nominal_reward: u64) acquires
ConsensusReward {
if (signer::address_of(vm) != @ol_framework) return;
system_addresses::assert_ol(vm); // either 0x1 or 0x0

let state = borrow_global_mut<ConsensusReward>(@ol_framework);
state.nominal_reward = nominal_reward;
Expand Down

0 comments on commit 157c96b

Please sign in to comment.