Polkadex-Substrate / polkadexTEE-worker

Polkadex Off-chain Orderbook
Apache License 2.0
10 stars 1 forks source link

Using Different types of Encoders in code related to Cancel Order #278

Closed zktony closed 2 years ago

zktony commented 2 years ago

While inserting Order into Cancel Order Cache:- Encoded Order UUID is :- [34, 55, 50, 98, 48, 57, 51, 54, 54, 45, 48, 101, 102, 97, 45, 49, 49, 101, 99, 45, 56, 97, 51, 99, 45, 48, 50, 52, 50, 97, 99, 49, 51, 48, 48, 48, 50, 34]

and while parsing OrderUUID from OF's response Order UUID is :- [144, 55, 50, 98, 48, 57, 51, 54, 54, 45, 48, 101, 102, 97, 45, 49, 49, 101, 99, 45, 56, 97, 51, 99, 45, 48, 50, 52, 50, 97, 99, 49, 51, 48, 48, 48, 50]

Both Encoded UUID are different due to which CancelOrder code treating both UUID as different.