Skip to content

Commit

Permalink
fix formating
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Dec 12, 2024
1 parent 1d431cc commit 42d1389
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions testutil/sample/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion x/crosschain/simulation/operation_abort_stuck_cctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 7 additions & 1 deletion x/observer/simulation/decoders.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,13 @@ func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string {
cdc.MustUnmarshal(kvB.Value, &paramsB)
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))],
),
)
}
}
}

0 comments on commit 42d1389

Please sign in to comment.