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

[PAGE ISSUE] Lazy minting, npm run test error #184

Open
Quantmatic opened this issue Dec 30, 2021 · 0 comments
Open

[PAGE ISSUE] Lazy minting, npm run test error #184

Quantmatic opened this issue Dec 30, 2021 · 0 comments
Labels
need/triage Needs initial labeling and prioritization

Comments

@Quantmatic
Copy link

https://github.com/protocol/nft-website/blob/main/docs/tutorial/lazy-minting.md

steps to replicate:
git clone https://github.com/ipfs-shipyard/nft-school-examples
cd nft-school-examples/lazy-minting
npm install
npm run test

$ npx hardhat test
Compiling 16 files with 0.8.4
Compilation finished successfully


  LazyNFT
    ✓ Should deploy (758ms)
    ✓ Should redeem an NFT from a signed voucher (190ms)
    ✓ Should fail to redeem an NFT that's already been claimed (162ms)
    ✓ Should fail to redeem an NFT voucher that's signed by an unauthorized account (109ms)
    ✓ Should fail to redeem an NFT voucher that's been modified (122ms)
    ✓ Should fail to redeem an NFT voucher with an invalid signature (91ms)
    ✓ Should redeem if payment is >= minPrice (87ms)
    ✓ Should fail to redeem if payment is < minPrice (69ms)
    1) Should make payments available to minter for withdrawal


  8 passing (2s)
  1 failing

  1) LazyNFT
       Should make payments available to minter for withdrawal:
     TypeError: account.getAddress is not a function
      at Object.getAddressOf (node_modules/@ethereum-waffle/chai/dist/cjs/matchers/misc/account.js:14:24)
@Quantmatic Quantmatic added the need/triage Needs initial labeling and prioritization label Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/triage Needs initial labeling and prioritization
Projects
None yet
Development

No branches or pull requests

1 participant