Timeline for Cannot call contract function using ethers.js
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 18 at 9:16 | comment | added | user134392 | I've got this working now! There were a number of issues: 1) I was importing the wrong contract artifact, I think I was importing the one I deployed to polygon mumbai testnet (not sure if that actually makes a difference however) 2) I didn't have a check in my mint function to ensure the same tokenID was not being used more than once Once I fixed this, deployed again using hardhat ignition and updated my script to get the new contract artifact and point to the new deployed address, it worked a treat! | |
Apr 18 at 7:42 | history | answered | Talha Sajid Chaudhary | CC BY-SA 4.0 |