Skip to content

Commit

Permalink
added querymeta id as an attribute in tip_added event (#443)
Browse files Browse the repository at this point in the history
* added querymeta id as an attribute in tip_added event

* added comma
  • Loading branch information
CJPotter10 authored Nov 21, 2024
1 parent 2754472 commit f6b2892
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/oracle/keeper/msg_server_tip.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/hex"
"errors"
"fmt"
"strconv"

layer "github.com/tellor-io/layer/types"
"github.com/tellor-io/layer/utils"
Expand Down Expand Up @@ -101,6 +102,7 @@ func (k msgServer) Tip(goCtx context.Context, msg *types.MsgTip) (*types.MsgTipR
sdk.NewAttribute("query_id", hex.EncodeToString(queryId)),
sdk.NewAttribute("tipper", tipper.String()),
sdk.NewAttribute("amount", tip.Amount.String()),
sdk.NewAttribute("querymeta_id", strconv.Itoa(int(query.Id))),
),
})
return &types.MsgTipResponse{}, nil
Expand Down

0 comments on commit f6b2892

Please sign in to comment.