diff --git a/package.json b/package.json index 5a3ef9b..f1b6af1 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ }, "dependencies": { "@1inch/byte-utils": "2.2.0", - "@1inch/limit-order-sdk": "4.5.0", + "@1inch/limit-order-sdk": "4.6.1", "@metamask/eth-sig-util": "^5.0.2", "bn.js": "^5.2.1", "ethers": "6.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5b990ba..a772b00 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ dependencies: specifier: 2.2.0 version: 2.2.0 '@1inch/limit-order-sdk': - specifier: 4.5.0 - version: 4.5.0(assert@2.1.0)(axios@1.6.8) + specifier: 4.6.1 + version: 4.6.1(assert@2.1.0)(axios@1.6.8) '@metamask/eth-sig-util': specifier: ^5.0.2 version: 5.1.0 @@ -155,8 +155,8 @@ packages: typescript: 4.9.4 dev: true - /@1inch/limit-order-sdk@4.5.0(assert@2.1.0)(axios@1.6.8): - resolution: {integrity: sha512-1wBGKc4ftcZdlLbjXudZVJ4o4x/svEugO8wcJdvAWhcCiQTADdwULVCHCSgsofIpVa0lu0sUPPBSg6rIdGKQ2A==} + /@1inch/limit-order-sdk@4.6.1(assert@2.1.0)(axios@1.6.8): + resolution: {integrity: sha512-1qgWxAhrmV3x5j+qH54fneS4iiCgV4f1thVvbObkMEQee1VRVnGmRHJRywZ4MYOM6+Wgo1Vape2b1lejx6zffg==} engines: {node: '>=18.16.0'} peerDependencies: assert: ^2.0.0 diff --git a/src/fusion-order/fusion-order.ts b/src/fusion-order/fusion-order.ts index daafee7..eb1bf29 100644 --- a/src/fusion-order/fusion-order.ts +++ b/src/fusion-order/fusion-order.ts @@ -269,6 +269,8 @@ export class FusionOrder { const makerTraits = new MakerTraits(BigInt(order.makerTraits)) + assert(!makerTraits.isPrivate(), 'fusion order can not be private') + const auctionDetails = AuctionDetails.fromExtension(extension) const postInteractionData =