Code:
const contractsReviewOperation = getOperation('contractsReview');
Parse.Cloud.define("contractsReview", async ({params, user, ip}: any) => {
try {
await beforeApiRequest(user, ip, 'contractsReview');
const request = upgradeRequest(params, contractsReviewOperation);
const result = await Moralis.EvmApi.utils.contractsReview(request);
return result?.raw;
} catch (error) {
throw new Error(getErrorMessage(error, 'contractsReview'));
}
})
Error:
Property 'contractsReview' does not exist on type '{ runContractFunction: (request: RunContractFunctionRequest) => Promise<RunContractFunctionResponseAdapter>; web3ApiVersion: () => Promise<...>; endpointWeights: () => Promise<...>; }'.```