Hey devs what could be reason of this error when interacting with smart contract?
Cannot read properties of undefined (reading ‘match’)
I’m trying to interact with SC when i invoke the function it returns only this error
here is my function
// SMART CONTRACT CREATE POST
const createNewPost = async () => {
// awaitsavePostData()
let options = {
contractAddress : "0x60Ae865ee4C725cd04353b5AAb364553f56ceF82",
abi : LENS_HUB,
params : {
vars: {
profileId: "0x41cd",
contentURI: 'https://ipfs.io/ipfs/Qmby8QocUU2sPZL46rZeMctAuF5nrCc7eR1PPkooCztWPz',
collectModule: "0xaeB7E3326e4745639574092801ad5C4467d513c9",
collectModuleInitData: "0x0000000000000000000000000000000000000000000000000000000000000001", //defaultAbiCoder.encode(['bool'], [true]),
referenceModule: "0x0000000000000000000000000000000000000000",//ZERO_ADDRESS,
referenceModuleInitData: [],
}
}
}
contractExcutor.fetch({
params: options,
onSuccess : () => {
console.log("the post have been created succesfully")
},
onError: (error) => {
console.log(error.message)
}
})
}
I have no idea what I’m doing wrong here ?