[Ethereum] How many arguments can Solidity take

contract-designcontract-developmentsolidity

I'd like to set lots of arguments in solidity functions. I wonder how many arguments contracts can handle.
Does it depend on number of arguments or data size?

Best Answer

Someone who is more familiar with the compiler may know otherwise, but at least from looking at the code (libsolidity) that deals with parsing .sol contract code into the compiler, there doesn't appear to be a limit.

(I'm specifically looking at parseFunctionCallListArguments and parseFunctionCallArguments in Parser.cpp.)

Related Topic