Skip to content

WrongOwner error when placing an order #579

@boavenn

Description

@boavenn

Overview

I tried to follow the integration guide in the docs using ethers.js v6 adapter but with no success. Ended up creating a minimal repro but that didn't clear anything for me unfortunately. Perhaps there's something I'm missing or there's indeed some issue with my current setup?

Description below is taken from the minimal repro I've created:
https://github.com/boavenn/cow-sdk-issue-repro

Expected Behavior

Order is placed successfully.

Actual Behavior

When trying to place the order using quote.postSwapOrderFromQuote() the following error is thrown even though the wallet used to sign the order has enough funds:

{
    errorType: 'InsufficientBalance',
    description: 'order owner must have funds worth at least x in his account'
}

When trying to place the order via OrderBookApi the following error is thrown, pointing to a signer that wasn't used to sign the order:

{
    errorType: 'WrongOwner',
    description: 'recovered signer 0x27a1852bdb3e617a3c99ce22ea1c8707fc64ee3b from signing hash 0xed15090177e634a93479c5006f6f29c79a2be8bf8404b701e41896f2182a1bab does not match from address'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions