Skip to content

Commit

Permalink
Fix market creation script (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Oct 8, 2024
1 parent 2b7da03 commit 6551f32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/create_market_omen.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from datetime import datetime

import typer
from web3 import Web3

Expand All @@ -18,7 +20,7 @@

def main(
question: str = typer.Option(),
closing_time: DatetimeUTC = typer.Option(),
closing_time: datetime = typer.Option(),
category: str = typer.Option(),
initial_funds: str = typer.Option(),
from_private_key: str = typer.Option(),
Expand Down Expand Up @@ -56,7 +58,7 @@ def main(
initial_funds=xdai_type(initial_funds),
fee_perc=fee_perc,
question=question,
closing_time=closing_time,
closing_time=DatetimeUTC.from_datetime(closing_time),
category=category,
language=language,
outcomes=outcomes,
Expand Down

0 comments on commit 6551f32

Please sign in to comment.