Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
vuong177 committed Oct 1, 2023
1 parent dd1a95f commit 89b897b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/upgrades/v5_2_0/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

const (
newWasmCodeID = "ad84ee3292e28b4e46da16974c118d40093e1a6e28a083f2f045f68fde7fb575"

Check failure on line 18 in app/upgrades/v5_2_0/fork.go

View workflow job for this annotation

GitHub Actions / lint

G101: Potential hardcoded credentials (gosec)
clientId = "08-wasm-5"
subjectClientId = "08-wasm-5"
substituteClientId = "08-wasm-133"
)

Expand All @@ -27,14 +27,14 @@ func RunForkLogic(ctx sdk.Context, keepers *keepers.AppKeepers) {

UpdateWasmContract(ctx, keepers.IBCKeeper)

err := ClientUpdate(ctx, keepers.IBCKeeper.Codec(), keepers.IBCKeeper, clientId, substituteClientId)
err := ClientUpdate(ctx, keepers.IBCKeeper.Codec(), keepers.IBCKeeper, subjectClientId, substituteClientId)
if err != nil {
panic(err)
}
}

func UpdateWasmContract(ctx sdk.Context, ibckeeper *ibckeeper.Keeper) {
unknownClientState, found := ibckeeper.ClientKeeper.GetClientState(ctx, clientId)
unknownClientState, found := ibckeeper.ClientKeeper.GetClientState(ctx, subjectClientId)
if !found {
panic("substitute client client not found ")
}
Expand Down

0 comments on commit 89b897b

Please sign in to comment.