Skip to content

Commit

Permalink
Merge pull request #14 from Polymarket/fix/struct-changes
Browse files Browse the repository at this point in the history
Fix: bug fixes
  • Loading branch information
JonathanAmenechi authored Feb 23, 2022
2 parents 69375eb + df61477 commit 4ad620f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions py_order_utils/builders/market_order_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def _normalize(self, mkt_order: MarketOrder):
maker = mkt_order["maker"],
makerAsset = mkt_order["makerAsset"],
makerAmount = mkt_order["makerAmount"],
makerAssetID = mkt_order["makerAssetID"] if mkt_order["makerAssetID"] >= 0 else 0,
makerAssetID = mkt_order["makerAssetID"] if mkt_order["makerAssetID"] != "-1" else "0",
takerAsset = mkt_order["takerAsset"],
takerAssetID = mkt_order["takerAssetID"] if mkt_order["takerAssetID"] >= 0 else 0,
takerAssetID = mkt_order["takerAssetID"] if mkt_order["takerAssetID"] != "-1" else "0",
signer= mkt_order["signer"],
sigType = mkt_order["sigType"]
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="py_order_utils",
version="0.0.8",
version="0.0.9",
author="Jonathan Amenechi",
author_email="[email protected]",
description="Python utilities used to generate and sign limit and market orders on Polymarket's CLOB",
Expand Down

0 comments on commit 4ad620f

Please sign in to comment.