mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 00:05:18 +00:00
chore: make function comments match function names (#1935)
Signed-off-by: todaymoon <csgcgl@foxmail.com>
This commit is contained in:
parent
16233d6031
commit
80f2370d68
@ -78,7 +78,7 @@ func (suite *Suite) SetupTest(numAddrs int) {
|
|||||||
suite.AccountKeeper = tApp.GetAccountKeeper()
|
suite.AccountKeeper = tApp.GetAccountKeeper()
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddCoinsToModule adds coins to a named module account
|
// AddCoinsToNamedModule adds coins to a named module account
|
||||||
func (suite *Suite) AddCoinsToNamedModule(moduleName string, amount sdk.Coins) {
|
func (suite *Suite) AddCoinsToNamedModule(moduleName string, amount sdk.Coins) {
|
||||||
// Does not use suite.BankKeeper.MintCoins as module account would not have permission to mint
|
// Does not use suite.BankKeeper.MintCoins as module account would not have permission to mint
|
||||||
err := suite.App.FundModuleAccount(suite.Ctx, moduleName, amount)
|
err := suite.App.FundModuleAccount(suite.Ctx, moduleName, amount)
|
||||||
|
@ -185,7 +185,7 @@ func (k Keeper) GetTokenCommitteeProposalResult(ctx sdk.Context, proposalID uint
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// TallyMemberCommitteeVotes returns the polling status of a token committee vote. Returns yes votes,
|
// TallyTokenCommitteeVotes returns the polling status of a token committee vote. Returns yes votes,
|
||||||
// total current votes, total possible votes (equal to token supply), vote threshold (yes vote ratio
|
// total current votes, total possible votes (equal to token supply), vote threshold (yes vote ratio
|
||||||
// required for proposal to pass), and quorum (votes tallied at this percentage).
|
// required for proposal to pass), and quorum (votes tallied at this percentage).
|
||||||
func (k Keeper) TallyTokenCommitteeVotes(ctx sdk.Context, proposalID uint64,
|
func (k Keeper) TallyTokenCommitteeVotes(ctx sdk.Context, proposalID uint64,
|
||||||
|
Loading…
Reference in New Issue
Block a user