Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update ERC721 mint-to to v5 #798

Merged
merged 5 commits into from
Dec 8, 2024
Merged

chore: Update ERC721 mint-to to v5 #798

merged 5 commits into from
Dec 8, 2024

Conversation

arcoraven
Copy link
Contributor

@arcoraven arcoraven commented Dec 8, 2024

PR-Codex overview

This PR focuses on updating the erc721mintTo function in the mintTo.ts file to integrate the thirdweb SDK for minting NFTs, enhancing the transaction handling and improving input validation.

Detailed summary

  • Replaced local getContract and queueTx imports with thirdweb SDK functions.
  • Updated the transaction preparation to use mintTo from thirdweb/extensions/erc721.
  • Added backward compatibility for metadata handling.
  • Changed request header variable names for clarity.
  • Improved input validation with maybeAddress and requiredAddress functions.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@arcoraven arcoraven merged commit 1505c30 into main Dec 8, 2024
5 checks passed
@arcoraven arcoraven deleted the ph/mintToV5 branch December 8, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant