Skip to content

fix: add missing hash field in SignedOrder instance - #1

Open
mukhamux wants to merge 1 commit into
PredictDotFun:mainfrom
mukhamux:fix-hash
Open

mukhamux wants to merge 1 commit into
PredictDotFun:mainfrom
mukhamux:fix-hash

Conversation

@mukhamux

Copy link
Copy Markdown

No description provided.

@mukhamux

Copy link
Copy Markdown
Author

I am using predict_account for trading via API. And now after:

signed_order = self.builder.sign_typed_data_order(typed_data)

I need make hash again:

hash_ = self.builder.build_typed_data_hash(typed_data)

because it is not saved anywhere.
With my fix it can be access by:

signed_order.hash

to pass it further in limit order body request for example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant