diff --git a/x/storage/keeper/msg_server_post_file.go b/x/storage/keeper/msg_server_post_file.go index d57f6273..934b4070 100644 --- a/x/storage/keeper/msg_server_post_file.go +++ b/x/storage/keeper/msg_server_post_file.go @@ -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())), ), ) diff --git a/x/storage/types/events.go b/x/storage/types/events.go index 930b0fd2..0cd1e69f 100644 --- a/x/storage/types/events.go +++ b/x/storage/types/events.go @@ -16,6 +16,7 @@ const ( AttributeKeySigner = "signer" // sign storage deal AttributeKeyContract = "file" AttributeKeyPayOnce = "pay_once" + AttributeKeyStart = "start" EventTypeJackalMessage = "jackal_message" )