When calling a smart contract method with multiple return values in web3 or web3x, one can access the return values by their names and/or by their indexes. However, web3x-codegen generated interfaces only allow access to return values by indexes.
Example smart contract method:
function getInfo() public view returns (
address theRichest,
uint theMostSent,
string theScreenName,
address thisAddress
)
When calling a smart contract method with multiple return values in web3 or web3x, one can access the return values by their names and/or by their indexes. However, web3x-codegen generated interfaces only allow access to return values by indexes.
Example smart contract method:
Generated code before this change:
which is equivalent to:
Generated code after this change: