diff --git a/x/compute/internal/keeper/migrations.go b/x/compute/internal/keeper/migrations.go index 2235c9153..277269454 100644 --- a/x/compute/internal/keeper/migrations.go +++ b/x/compute/internal/keeper/migrations.go @@ -39,14 +39,12 @@ func (m Migrator) Migrate1to2(ctx sdk.Context) error { var contractInfo types.ContractInfo m.keeper.cdc.MustUnmarshal(iter.Value(), &contractInfo) - if ctx.ChainID() == "secret-4" { - if hardcodedContractAdmins[contractAddress.String()] != "" { - contractInfo.Admin = hardcodedContractAdmins[contractAddress.String()] - // When the contract has a hardcoded admin via gov, adminProof is ignored inside the enclave. - // Otherwise and if valid, adminProof is a 32 bytes array (output of sha256). - // For future proofing and avoiding passing null pointers to the enclave, we'll set it to a 32 bytes array of 0. - contractInfo.AdminProof = make([]byte, 32) - } + if hardcodedContractAdmins[contractAddress.String()] != "" { + contractInfo.Admin = hardcodedContractAdmins[contractAddress.String()] + // When the contract has a hardcoded admin via gov, adminProof is ignored inside the enclave. + // Otherwise and if valid, adminProof is a 32 bytes array (output of sha256). + // For future proofing and avoiding passing null pointers to the enclave, we'll set it to a 32 bytes array of 0. + contractInfo.AdminProof = make([]byte, 32) } // get v1 contract key