delvtech / pypechain

Static Python bindings for Ethereum smart contracts.
Apache License 2.0
9 stars 2 forks source link

Support for double nested arrays for return values #147

Open slundqui opened 1 month ago

slundqui commented 1 month ago

Currently, pypechain function call() that returns a double nested array in Solidity (e.g., uint256[][]) returns a NotImplementedError('Multiple return values of type list[...] is not supported.') error. Ideally, we would support this output, or at minimum support falling back to returning the output without typing if this fails.

The use case for this is calling IRestakeManager.calculateTVLs() function in the IRenzo.sol contracts.