ipfs-shipyard / nft-school-examples

143 stars 92 forks source link

Cannot read properly 'wait" #3

Open thevadimspivak opened 3 years ago

thevadimspivak commented 3 years ago

Hello. I was trying to do end-to-end lesson. When I was trying to mint my NFT, I found out a mistake, can you help me to fix this error? This looks like this image Thank you.

jessicaschilling commented 3 years ago

@yusefnapora @johndmulhausen are you able to have a look? Thank you!

yusefnapora commented 3 years ago

Hi @thevadimspivak thanks for the report - I should be checking for null there!

Did you add any test Ether to your account before minting? If not, that may be the cause of the failed transaction, and you could try again after getting some play Eth from the faucet.

yusefnapora commented 3 years ago

Thanks for the error output. I'll try to reproduce this tomorrow and debug.

MuhdRaffiq commented 3 years ago

Did anyone manage to get the issue here? I receive the same error as well for wait()

It was doing good for the local chain. But when I use the code to connect to an NFT smart contracts in BSC test it produces this error.

I have:

  1. test BNB for the execution of the contract
  2. update BSC testnet network at NETWORKS in constant.js
  3. put testnet at targetNetwork in app.jsx
  4. put the contract address in contracts/NFTMinter.address
  5. put the contracts address ABI at NFTMinter.abi in contracts
  6. put the bytecode address at NFTMinter.bytecode in contracts
  7. Reset account my metamask wallet

I tried looking into the code, cant seem to find any problem because its working for my local chain

MuhdRaffiq commented 3 years ago

Did anyone manage to get the issue here? I receive the same error as well for wait()

It was doing good for the local chain. But when I use the code to connect to an NFT smart contracts in BSC test it produces this error.

I have:

  1. test BNB for the execution of the contract
  2. update BSC testnet network at NETWORKS in constant.js
  3. put testnet at targetNetwork in app.jsx
  4. put the contract address in contracts/NFTMinter.address
  5. put the contracts address ABI at NFTMinter.abi in contracts
  6. put the bytecode address at NFTMinter.bytecode in contracts
  7. Reset account my metamask wallet

I tried looking into the code, cant seem to find any problem because its working for my local chain

nevermind. I solved it. I got it wrong on function input

hacktar commented 2 years ago

Did anyone manage to get the issue here? I receive the same error as well for wait() It was doing good for the local chain. But when I use the code to connect to an NFT smart contracts in BSC test it produces this error. I have:

  1. test BNB for the execution of the contract
  2. update BSC testnet network at NETWORKS in constant.js
  3. put testnet at targetNetwork in app.jsx
  4. put the contract address in contracts/NFTMinter.address
  5. put the contracts address ABI at NFTMinter.abi in contracts
  6. put the bytecode address at NFTMinter.bytecode in contracts
  7. Reset account my metamask wallet

I tried looking into the code, cant seem to find any problem because its working for my local chain

nevermind. I solved it. I got it wrong on function input

Sorry, how did you solve ? Thanks in advance

MuhdRaffiq commented 2 years ago

My mistake was that I have put the wrong input for the function's parameter.