Skip to content

Commit

Permalink
make governance::trigger_epoch an entry function
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Jan 14, 2024
1 parent 95c8802 commit 464535a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ module diem_framework::diem_governance {
/// decides the epoch can change. Any error will just cause the
/// user's transaction to abort, but the chain will continue.
/// Whatever fix is needed can be done online with on-chain governance.
public fun trigger_epoch(_sig: &signer) acquires GovernanceResponsbility { // doesn't need a signer
public entry fun trigger_epoch(_sig: &signer) acquires GovernanceResponsbility { // doesn't need a signer
let framework_signer = get_signer(@0x1);
let _ = epoch_boundary::can_trigger(); // will abort if false
epoch_boundary::trigger_epoch(&framework_signer);
Expand Down

0 comments on commit 464535a

Please sign in to comment.