Moralis.executeFunction - unclear error

I’m trying to use Moralis.executeFunction for the first time but it fail in a weird way
instead of getting an error object all I get is this weird message:

TypeError: Cannot read properties of undefined (reading ‘filter’)

here is the code without the abi because it will take too much space

var options = {};
	options.contractAddress = "0x6da4c631c6ad8bfd9d7845fd093541bebece2f96";
	options.functionName = "contractURI";
	options.api = test_contract_abi;
	options.params = {};
	
	var promise = Moralis.executeFunction(options);
	promise.then(TestContract3,TestContractError);

options.api = test_contract_abi;

This should be options.abi.

1 Like

thanks! can’t believe I missed that… :slight_smile: