Skip to content

OrderSigningUtils doesn't accept appDataHash and stringified appData #192

Description

@mfw78

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions