Retrieving Criteria Proofs when Fulfilling an Order #81
Answered
by
sunwrobert
warneracw21
asked this question in
Q&A
-
When attempting to fulfill an order using Seaport, it is apparent that the offerCriteria and considerationCriteria are not provided with the offer's retrieved from the REST endpoint. Is there a way to calculate these "proofs"? Specifically referencing ./src/utils/criteria.js [42] const mapCriteriaItemsToResolver = (criteriaItems, criterias) =>
criteriaItems.map(({ orderIndex, item, index, side }, i) => {
const merkleRoot = item.identifierOrCriteria || "0";
const inputCriteria = criterias[orderIndex][i];
return {
orderIndex,
index,
side,
identifier: inputCriteria.identifier,
criteriaProof: (merkleRoot === "0") ? [] : inputCriteria.proof
};
}); |
Beta Was this translation helpful? Give feedback.
Answered by
sunwrobert
Jul 15, 2022
Replies: 1 comment
-
This is a duplicate of #77 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sunwrobert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a duplicate of #77