Skip to content

Commit

Permalink
Removed unwanted comments and strings changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MissingNO57 committed Oct 16, 2024
1 parent 945683b commit 39752a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/upgrade_0_11_4_reconciliation.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func (app *App) DeleteContractStates(ctx types.Context, networkInfo *NetworkConf
func (app *App) getContractData(ctx types.Context, contractAddr string) (*types.AccAddress, *types.KVStore, *prefix.Store, error) {
addr, err := types.AccAddressFromBech32(contractAddr)
if err != nil {
return nil, nil, nil, fmt.Errorf("invalid contract Address: %v", err)
return nil, nil, nil, fmt.Errorf("invalid contract address: %v", err)
}

store := ctx.KVStore(app.keys[wasmTypes.StoreKey])
Expand Down
14 changes: 7 additions & 7 deletions app/upgrade_cudos.go
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ func withdrawGenesisStakingDelegations(logger log.Logger, genesisData *GenesisDa
currentValidatorInfo := genesisData.Validators.MustGet(validatorOperatorAddress)
delegatorTokens := currentValidatorInfo.TokensFromShares(delegation.Shares).TruncateInt()

// Move balance to delegator Address
// Move balance to delegator address
delegatorBalance := sdk.NewCoins(sdk.NewCoin(genesisData.BondDenom, delegatorTokens))

if delegatorTokens.IsZero() {
Expand Down Expand Up @@ -860,7 +860,7 @@ func withdrawGenesisStakingDelegations(logger log.Logger, genesisData *GenesisDa
for _, entry := range unbondingDelegation.Entries {
unbondingDelegationBalance := sdk.NewCoins(sdk.NewCoin(genesisData.BondDenom, entry.Balance))

// Move unbonding balance from not-bonded pool to delegator Address
// Move unbonding balance from not-bonded pool to delegator address
err := moveGenesisBalance(genesisData, genesisData.NotBondedPoolAddress, resolvedDelegatorAddress, unbondingDelegationBalance, "unbonding_delegation", manifest, cudosCfg)
if err != nil {
return err
Expand Down Expand Up @@ -1382,10 +1382,10 @@ func resolveIfContractAddressWithFallback(address string, contracts *OrderedMap[
}

if resolvedAddress == nil || strings.TrimSpace(*resolvedAddress) == "" {
// Use fallback Address
// Use fallback address
return cudosCfg.Config.ContractDestinationFallbackAddr, nil
} else {
// Use resolved Address
// Use resolved address
return *resolvedAddress, nil
}
}
Expand Down Expand Up @@ -1757,7 +1757,7 @@ func GetAddressByName(genesisAccounts *OrderedMap[string, *AccountInfo], name st

}

return "", fmt.Errorf("Address not found in genesis accounts: %s", name)
return "", fmt.Errorf("address not found in genesis accounts: %s", name)
}

func checkDecTolerance(coins sdk.DecCoins, maxToleratedDiff sdk.Int) error {
Expand Down Expand Up @@ -1820,11 +1820,11 @@ func resolveNewBaseAccount(ctx sdk.Context, app *App, genesisAccount *AccountInf
var newBaseAccount *authtypes.BaseAccount
var err error

// Check for Pubkey collision
// Check for pubkey collision
if existingAccount != nil {
// Handle collision

// Set Pubkey from newAcc if is not in existingAccount
// Set pubkey from newAcc if is not in existingAccount
if existingAccount.GetPubKey() == nil && genesisAccount.Pubkey != nil {
err := existingAccount.SetPubKey(genesisAccount.Pubkey)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion app/upgrade_cudos_distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func withdrawGenesisDistributionRewards(logger log.Logger, genesisData *GenesisD
return err
}

// Withdraw Community pool balance to Address if defined
// Withdraw Community pool balance to address if defined
communityBalance, _ := genesisData.DistributionInfo.FeePool.CommunityPool.TruncateDecimal()
distributionModuleAccount := genesisData.Accounts.MustGet(genesisData.DistributionInfo.DistributionModuleAccountAddress)

Expand Down
2 changes: 1 addition & 1 deletion app/upgrade_v_11_4_network_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ type CudosMergeConfigJSON struct {

CommissionFetchAddr string `json:"commission_fetch_addr"` // Fetch address for commission
ExtraSupplyFetchAddr string `json:"extra_supply_fetch_addr"` // Fetch address for extra supply
VestingCollisionDestAddr string `json:"vesting_collision_dest_addr"` // This gets converted to raw Address, so it can be fetch or cudos Address
VestingCollisionDestAddr string `json:"vesting_collision_dest_addr"` // This gets converted to raw address, so it can be fetch or cudos address

VestingPeriod int64 `json:"vesting_period"` // Vesting period

Expand Down

0 comments on commit 39752a1

Please sign in to comment.