Skip to content

Commit

Permalink
Fix sig verification
Browse files Browse the repository at this point in the history
  • Loading branch information
codyborn committed Sep 27, 2024
1 parent 0d82027 commit eedf4ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/uniswapx-sdk/src/order/V3DutchOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ export class CosignedV3DutchOrder extends UnsignedV3DutchOrder {
recoverCosigner(): string {
const messageHash = this.cosignatureHash(this.info.cosignerData);
const signature = this.info.cosignature;
return ethers.utils.recoverAddress(messageHash, signature);
return ethers.utils.verifyMessage(messageHash, signature);
}

resolve(options: V3OrderResolutionOptions): ResolvedUniswapXOrder {
Expand Down

0 comments on commit eedf4ef

Please sign in to comment.