Skip to content

Commit

Permalink
use access self on admin commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kc1116 committed Jul 29, 2024
1 parent 802d828 commit 1f63515
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions contracts/epochs/FlowEpoch.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ access(all) contract FlowEpoch {
FlowEpoch.account.storage.save(enabled, to: /storage/flowAutomaticRewardsEnabled)
}

access(all) fun emitEpochRecoverEvent(epochCounter: UInt64,
access(self) fun emitEpochRecoverEvent(epochCounter: UInt64,
startView: UInt64,
stakingEndView: UInt64,
endView: UInt64,
Expand Down Expand Up @@ -544,7 +544,7 @@ access(all) contract FlowEpoch {
/// Performs sanity checks for the provided epoch configuration. It will ensure the following;
/// - There is a valid phase configuration.
/// - All nodes in the node ids list have a weight > 0.
access(all) fun recoverEpochPreChecks(startView: UInt64,
access(self) fun recoverEpochPreChecks(startView: UInt64,
stakingEndView: UInt64,
endView: UInt64,
nodeIDs: [String],
Expand Down Expand Up @@ -573,7 +573,7 @@ access(all) contract FlowEpoch {

/// Stops epoch components. If the configuration is a valid configuration the staking auction,
/// qc voting and dkg will be ended depending on the current epoch phase.
access(all) fun stopEpochComponents()
access(self) fun stopEpochComponents()
{
if FlowEpoch.currentEpochPhase == EpochPhase.STAKINGAUCTION {
/// Since we are resetting the epoch, we do not need to
Expand Down
Loading

0 comments on commit 1f63515

Please sign in to comment.