HashLips / hashlips_nft_minting_dapp

HashLips minting dapp is a quick and easy way to connect your smart contract and start minting NFTs.
MIT License
1.02k stars 984 forks source link

Issue with parameter vs to: address #135

Open skybutter798 opened 2 years ago

skybutter798 commented 2 years ago

Am getting error on this section and trying hard to fix with no luck..here is the part of code

blockchain.smartContract.methods
      .setApprovalForAll("CONTRACT A" , "1")

      .send({
        gasLimit: String(totalGasLimit),
        to: "CONTRACT B",
        from: blockchain.account,
        value: totalCostWei,
      })

In return when the claim button is clicked, it send the correct HEX (CONTRACT A 1) but the to address stick with CONTRACT A..There is no effect for -> .send ({ to: "CONTRACT B", })

My goal is to send HEX (CONTRACT A 1) To CONTRACT B to set as a operator. Appreciated for the help.