Last active
June 6, 2019 04:39
-
-
Save pizzarob/ae299c8a249be30b4a3c66371aa3cbb9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get the resale items for our contracts. This method | |
// takes a list of token contract IDs, not addresses. | |
// The IDs are assigned by Cargo and used internally | |
const { data: resaleItems} = await cargo.api.getContractResaleItems( | |
contracts.map(contract => contract.tokenContractId) | |
); | |
// Pass our contract data and resale items to a function that will create some markup | |
// and add it to the page. | |
displayContractContent(contracts, resaleItems); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment