Skip to content

Commit

Permalink
fix(rollapp): fix store issue with hooks (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin authored Nov 17, 2024
1 parent 5fc6dd0 commit c0774fc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions x/rollapp/keeper/hard_fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func (k Keeper) HardFork(ctx sdk.Context, rollappID string, newRevisionHeight ui

ctx.EventManager().EmitEvent(
sdk.NewEvent(
types.EventTypeFraud,
types.EventTypeHardFork,
sdk.NewAttribute(types.AttributeKeyRollappId, rollappID),
sdk.NewAttribute(types.AttributeKeyFraudHeight, fmt.Sprint(newRevisionHeight)),
sdk.NewAttribute(types.AttributeKeyNewRevisionHeight, fmt.Sprint(newRevisionHeight)),
),
)

Expand Down
1 change: 1 addition & 0 deletions x/rollapp/keeper/msg_server_update_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (k msgServer) UpdateState(goCtx context.Context, msg *types.MsgUpdateState)

// TODO: enforce `final_state_update_timeout` if sequencer rotation is in progress
// https://github.com/dymensionxyz/dymension/issues/1085
rollapp = k.MustGetRollapp(ctx, msg.RollappId)
k.IndicateLiveness(ctx, &rollapp)
k.SetRollapp(ctx, rollapp)

Expand Down
9 changes: 4 additions & 5 deletions x/rollapp/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ const (
AttributeKeyDAPath = "da_path"
AttributeKeyStatus = "status"

// EventTypeFraud is emitted when a fraud evidence is submitted
EventTypeFraud = "fraud_proposal"
AttributeKeyFraudHeight = "fraud_height"
AttributeKeyFraudSequencer = "fraud_sequencer"
AttributeKeyClientID = "client_id"
// EventTypeHardFork is emitted when a fraud evidence is submitted
EventTypeHardFork = "hard_fork"
AttributeKeyNewRevisionHeight = "new_revision_height"
AttributeKeyClientID = "client_id"

// EventTypeTransfersEnabled is when the bridge is enabled
EventTypeTransfersEnabled = "transfers_enabled"
Expand Down

0 comments on commit c0774fc

Please sign in to comment.