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

receiver not declared in useNTT contract in README #2

Open
thebraveman17 opened this issue Jan 15, 2025 · 0 comments
Open

receiver not declared in useNTT contract in README #2

thebraveman17 opened this issue Jan 15, 2025 · 0 comments

Comments

@thebraveman17
Copy link

README contains the useNTT contract:

contract UseNTT {
  function useNTT() public {
    string memory name = "Non-transferrable NFT";
    string memory symbol = "NTT";
    bool isLocked = true;

    NTT ntt = new NTT(name, symbol, isLocked);

    address minter = address(this);
    uint256 tokenId = 0;
    ntt.safeMint(minter, tokenId);

    ntt.transferFrom(minter, receiver, tokenId); // revert. token is locked.
  }
}

In the line ntt.transferFrom(minter, receiver, tokenId);, receiver is not declared.

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

No branches or pull requests

1 participant