Skip to content

Commit

Permalink
link with unpadded alert
Browse files Browse the repository at this point in the history
  • Loading branch information
0xSpuddy committed Jun 24, 2024
1 parent 2bcd9ab commit 5fd70a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tellor_disputables/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ async def parse_new_report_event(

if new_report.query_type == "SpotPrice":
if len(event_data.args._value) != 32:
send_discord_msg("Spot price value length is not 32 bytes")
send_discord_msg(f"SpotPrice value not 32 bytes! \n{new_report.link}")

# if query of event matches a query type of the monitored feeds, fill the query parameters

Expand Down
2 changes: 1 addition & 1 deletion src/tellor_disputables/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def generate_alert_msg(disputable: bool, link: str) -> str:
def send_discord_msg(msg: str) -> None:
"""Send Discord alert."""
MONITOR_NAME = os.getenv("MONITOR_NAME")
message = f"{MONITOR_NAME} Found Something:"
message = f"{MONITOR_NAME} Found Something\n"
get_alert_bot_1().post(content=message + msg)
try:
get_alert_bot_2().post(content=message + msg)
Expand Down

0 comments on commit 5fd70a9

Please sign in to comment.