Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cyaiox committed Dec 21, 2024
1 parent 60672f3 commit 32fc0c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib/trades.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ describe('when getting the trade signature', () => {
domain = {
name: offchainMarketplaceContract.name,
version: offchainMarketplaceContract.version,
salt: SALT,
verifyingContract: offchainMarketplaceContract.address
verifyingContract: offchainMarketplaceContract.address,
salt: SALT
}

values = {
Expand All @@ -182,21 +182,21 @@ describe('when getting the trade signature', () => {
externalChecks: trade.checks.externalChecks?.map(externalCheck => ({
contractAddress: externalCheck.contractAddress,
selector: externalCheck.selector,
value: externalCheck.value,
value: '0x',
required: externalCheck.required
}))
},
sent: trade.sent.map(asset => ({
assetType: asset.assetType,
contractAddress: asset.contractAddress,
value: getValueForTradeAsset(asset),
extra: ethers.utils.hexlify(ethers.utils.toUtf8Bytes(asset.extra))
extra: '0x'
})),
received: trade.received.map(asset => ({
assetType: asset.assetType,
contractAddress: asset.contractAddress,
value: getValueForTradeAsset(asset),
extra: ethers.utils.hexlify(ethers.utils.toUtf8Bytes(asset.extra)),
extra: '0x',
beneficiary: asset.beneficiary
}))
}
Expand Down Expand Up @@ -274,14 +274,14 @@ describe('when getting the trade to accept', () => {
assetType: asset.assetType,
contractAddress: asset.contractAddress,
value: getValueForTradeAsset(asset),
extra: ethers.utils.hexlify(ethers.utils.toUtf8Bytes(asset.extra)),
extra: '0x',
beneficiary: beneficiaryAddress
})),
received: trade.received.map(asset => ({
assetType: asset.assetType,
contractAddress: asset.contractAddress,
value: getValueForTradeAsset(asset),
extra: ethers.utils.hexlify(ethers.utils.toUtf8Bytes(asset.extra)),
extra: '0x',
beneficiary: asset.beneficiary
}))
})
Expand Down

0 comments on commit 32fc0c3

Please sign in to comment.