Skip to content

Instantly share code, notes, and snippets.

@pizzarob
Last active June 6, 2019 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pizzarob/ae299c8a249be30b4a3c66371aa3cbb9 to your computer and use it in GitHub Desktop.
Save pizzarob/ae299c8a249be30b4a3c66371aa3cbb9 to your computer and use it in GitHub Desktop.
// 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