Skip to content

Issue with the mint() function #1

@tdev00

Description

@tdev00

Hi there. Great tutorials.

There is an issue with your react code.
Lets say the user approves the transfer of the ERC20 token, then accidentally or decides to not accept the minting request, the ERC20 token has already transferred into the smart contract. That is an issue that needs to be addressed.
Also, I think the transfer function should not exist in the mint1() function. The ERC20 transfer should happen in the smart contract. Saves gas fees that way.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions