Skip to content

Commit 14f454e

Browse files
committed
Merge branch 'feature/add-isDatasetCompatibleWithDeal-function' into feature/add-isDatasetCompatibleWithDeal-function-part2
2 parents 662ccee + df9fb9e commit 14f454e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

contracts/facets/IexecPoco1Facet.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ contract IexecPoco1Facet is IexecPoco1, FacetBase, IexecEscrow, SignatureVerifie
4848
return _verifySignatureOrPresignature(_identity, _hash, _signature);
4949
}
5050

51-
/***************************************************************************
52-
* ODB DatasetOrder compatibility with a deal *
53-
***************************************************************************/
5451
/**
5552
* @notice Public view function to check if a dataset order is compatible with a deal.
5653
* This function performs all the necessary checks to verify dataset order compatibility with a deal.
5754
*
55+
* @dev This function is mainly consumed by offchain clients. It should be carefully inspected if used inside on-chain code.
56+
* This function should not be used in matchOrders as it does not check the same requirements.
57+
*
5858
* @param datasetOrder The dataset order to verify
5959
* @param dealid The deal ID to check against
6060
* @return true if the dataset order is compatible with the deal, false otherwise
@@ -79,7 +79,7 @@ contract IexecPoco1Facet is IexecPoco1, FacetBase, IexecEscrow, SignatureVerifie
7979
IexecLibCore_v5.Deal storage deal = $.m_deals[dealid];
8080
dealExists = (deal.requester != address(0));
8181

82-
// Check if deal dataset is address 0 (no dataset in deal)
82+
// The specified deal should not have a dataset.
8383
dealHasNoDataset = (deal.dataset.pointer == address(0));
8484

8585
// Check dataset order owner signature (including presign and EIP1271)

scripts/upgrades/deploy-and-update-some-facet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ import { printFunctions } from './upgrade-helper';
5858
console.log('Deploying new IexecPocoAccessorsFacet...');
5959
const iexecPocoAccessorsFacetFactory = new IexecPocoAccessorsFacet__factory(iexecLibOrders);
6060
const iexecPocoAccessorsFacet = await factoryDeployer.deployContract(
61-
iexecPocoAccessorsFacetFactory,
61+
new IexecPocoAccessorsFacet__factory(iexecLibOrders),
6262
);
6363

6464
console.log('Deploying new IexecPoco1Facet...');

0 commit comments

Comments
 (0)