I get a param.substring is not a function error when trying to call a smart contract function (deployed using ganache and truffle).
This is my code.
const web3 = new Web3(window.ethereum);
const MyContract = new web3.eth.Contract(ABI, ContractAddress);
console.log(MyContract);
const create= await MyContract.methods.createToken(hash,letterid).send({ from: window.ethereum.selectedAddress });
This is the error.
please help!
ganache version- 2.5.4 web3 version- 1.7.4
