diff --git a/testutil/sample/crypto.go b/testutil/sample/crypto.go index b67698bca0..79489292fb 100644 --- a/testutil/sample/crypto.go +++ b/testutil/sample/crypto.go @@ -58,6 +58,9 @@ func PubKeyString() string { func PubkeyStringFromRand(r *rand.Rand) (string, error) { priKey, err := Ed25519PrivateKeyFromRand(r) + if err != nil { + return "", err + } s, err := cosmos.Bech32ifyPubKey(cosmos.Bech32PubKeyTypeAccPub, priKey.PubKey()) if err != nil { return "", err diff --git a/x/crosschain/simulation/operation_abort_stuck_cctx.go b/x/crosschain/simulation/operation_abort_stuck_cctx.go index f828b8f5d7..40b4f21b53 100644 --- a/x/crosschain/simulation/operation_abort_stuck_cctx.go +++ b/x/crosschain/simulation/operation_abort_stuck_cctx.go @@ -18,7 +18,6 @@ import ( func SimulateMsgAbortStuckCCTX(k keeper.Keeper) simtypes.Operation { return func(r *rand.Rand, app *baseapp.BaseApp, ctx sdk.Context, accounts []simtypes.Account, _ string, ) (OperationMsg simtypes.OperationMsg, futureOps []simtypes.FutureOperation, err error) { - // Pick a ethereum chain to abort a stuck cctx chainID := int64(1337) supportedChains := k.GetObserverKeeper().GetSupportedChains(ctx) diff --git a/x/observer/simulation/decoders.go b/x/observer/simulation/decoders.go index 6ebf8514c9..d48e906443 100644 --- a/x/observer/simulation/decoders.go +++ b/x/observer/simulation/decoders.go @@ -91,7 +91,13 @@ func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string { cdc.MustUnmarshal(kvB.Value, ¶msB) return fmt.Sprintf("%v\n%v", paramsA, paramsB) default: - panic(fmt.Sprintf("invalid observer key prefix %X (first 8 bytes: %X)", kvA.Key[:1], kvA.Key[:min(8, len(kvA.Key))])) + panic( + fmt.Sprintf( + "invalid observer key prefix %X (first 8 bytes: %X)", + kvA.Key[:1], + kvA.Key[:min(8, len(kvA.Key))], + ), + ) } } }