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

optimize: improve mintAdditionalSupplyTo efficiency #5148

Merged

Commits on Oct 24, 2024

  1. optimize: improve mintAdditionalSupplyTo efficiency (#5148)

    ## Problem solved
    
    Short description of the bug fixed or feature added
    
    <!-- start pr-codex -->
    
    ---
    
    ## PR-Codex overview
    This PR focuses on optimizing the `mintAdditionalSupplyTo` function in the `erc1155` extension by modifying how the token URI is handled during the minting process.
    
    ### Detailed summary
    - Removed the retrieval of the existing token URI from the contract.
    - Set the `uri` field to an empty string, indicating the contract will maintain the existing token URI.
    - Kept the `to`, `tokenId`, and `amount` fields unchanged.
    
    > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
    
    <!-- end pr-codex -->
    joaquim-verges committed Oct 24, 2024
    Configuration menu
    Copy the full SHA
    2fdb69d View commit details
    Browse the repository at this point in the history