Skip to content

Commit

Permalink
Fix incorrect address in PayForSession event
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Aug 18, 2023
1 parent b48aef9 commit 193cbab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion x/session/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ func (k *msgServer) MsgStart(c context.Context, msg *types.MsgStartRequest) (*ty
return nil, types.NewErrorDuplicateActiveSession(session.ID)
}

//
// Get the status change delay from the Store.
statusChangeDelay := k.StatusChangeDelay(ctx)

Expand Down
2 changes: 1 addition & 1 deletion x/subscription/keeper/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (k *Keeper) SessionInactiveHook(ctx sdk.Context, id uint64, accAddr sdk.Acc
// Emit an event for the session payment.
ctx.EventManager().EmitTypedEvent(
&types.EventPayForSession{
Address: session.NodeAddress,
Address: session.Address,
NodeAddress: session.NodeAddress,
Payment: payment.String(),
StakingReward: stakingReward.String(),
Expand Down

0 comments on commit 193cbab

Please sign in to comment.