Skip to content

Commit

Permalink
fix: update price from gnfd is not accurate (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing authored Nov 1, 2023
1 parent 0a3b063 commit ba6b0d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor/gnfd_block_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ func (p *GnfdBlockProcessor) handleEventUpdateGroupExtra(blockHeight uint64, eve
return rawSql, err
}

return fmt.Sprintf("update items set description = '%s', url = '%s', price = %s, updated_gnfd_height = %d where group_id = %d",
escape(extra.Desc), escape(extra.Url), extra.Price, blockHeight, updateGroupExtra.GroupId.Uint64()), nil
return fmt.Sprintf("update items set description = '%s', url = '%s',updated_gnfd_height = %d where group_id = %d",
escape(extra.Desc), escape(extra.Url), blockHeight, updateGroupExtra.GroupId.Uint64()), nil
}

func (p *GnfdBlockProcessor) handleEventPutPolicy(blockHeight uint64, event abciTypes.Event) (string, error) {
Expand Down

0 comments on commit ba6b0d5

Please sign in to comment.