Skip to content

Commit

Permalink
Merge branch 'master' into testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
toml01 authored Oct 9, 2023
2 parents 2e414e4 + 8d621e5 commit 9f68742
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.53.2
version: v1.54.2
skip-cache: true
6 changes: 3 additions & 3 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ func (app *SecretNetworkApp) setupUpgradeStoreLoaders() {
return
}

for _, upgradeDetails := range Upgrades {
if upgradeInfo.Name == upgradeDetails.UpgradeName {
app.BaseApp.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &upgradeDetails.StoreUpgrades))
for i := range Upgrades {
if upgradeInfo.Name == Upgrades[i].UpgradeName {
app.BaseApp.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &Upgrades[i].StoreUpgrades))
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion x/compute/internal/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ func InitGenesis(ctx sdk.Context, keeper Keeper, data types.GenesisState) error
}

var maxContractID int
for i, contract := range data.Contracts {
for i := range data.Contracts {
contract := data.Contracts[i] // This is to prevent golint from complaining about referencing a for variable address
err := keeper.importContract(ctx, contract.ContractAddress, contract.ContractCustomInfo, &contract.ContractInfo, contract.ContractState)
if err != nil {
return sdkerrors.Wrapf(err, "contract number %d", i)
Expand Down

0 comments on commit 9f68742

Please sign in to comment.