Skip to content

Commit

Permalink
adding start event
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Sep 4, 2024
1 parent 3109fce commit 573edbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions x/storage/keeper/msg_server_post_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func (k msgServer) PostFile(goCtx context.Context, msg *types.MsgPostFile) (*typ
sdk.NewAttribute(types.AttributeKeySigner, msg.Creator),
sdk.NewAttribute(types.AttributeKeyContract, hex.EncodeToString(msg.Merkle)),
sdk.NewAttribute(types.AttributeKeyPayOnce, b),
sdk.NewAttribute(types.AttributeKeyStart, fmt.Sprintf("%d", ctx.BlockHeight())),
),
)

Expand Down
1 change: 1 addition & 0 deletions x/storage/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const (
AttributeKeySigner = "signer" // sign storage deal
AttributeKeyContract = "file"
AttributeKeyPayOnce = "pay_once"
AttributeKeyStart = "start"

EventTypeJackalMessage = "jackal_message"
)

0 comments on commit 573edbc

Please sign in to comment.