I am working on an application that stores and retrieves personal data on/from the ethereum blockchain. Just working on this to improve my Solidity and SC expertise and get comfortable with the environment.
Situation: I am using remix to code my Solidity contracts. I run a ganache-cli on localhost that functions as the private eth blockchain. Using node.js/express, I have build an application that is hosted on localhost at a different address. There is one particular function that creates a profile, taking in 6 parameters (of which 5 strings). Executing this function from within Remix works fine, executing this function from the dApp sends a "run out of gas error". If I set a function that only takes 3/6 parameters, it works like it should; if I add one more the "run out gas"-error shows up.
I have tried manually setting the gas limit of the ganache-cli to something high (24 million) and done the same when deploying it using Remix. Still, I can't get it to work.
Does anybody have any idea what could be the issue here? Thanks in advance.