Problem
If one just passes the QuoteRequestResponse object through to the OrderSigningUtils, the following occurs:
invalid hex string (argument="value", value="{\"appCode\":\"Decentralized CoW\",\"environment\":\"prod\",\"metadata\":{\"orderClass\":{\"orderClass\":\"limit\"},\"quote\":{\"slippageBips\":\"50\"},\"referrer\":{\"address\":\"0xcA771eda0c70aA7d053aB1B25004559B918FE662\"}},\"version\":\"0.11.0\"}", code=INVALID_ARGUMENT, version=bytes/5.7.0)
Solution
OrderSigningUtils should be made aware and able to handle itself so it doesn't do this and hashes the correct parts.
Problem
If one just passes the
QuoteRequestResponseobject through to theOrderSigningUtils, the following occurs:Solution
OrderSigningUtilsshould be made aware and able to handle itself so it doesn't do this and hashes the correct parts.