cairo-contracts
                                
                                 cairo-contracts copied to clipboard
                                
                                    cairo-contracts copied to clipboard
                            
                            
                            
                        A Multicall Contract for View Functions?
Currently, I see #20 as work-in-progress and it will take a while till Starknet supports pointer in Array of struct. However, I believe it's only required for executing external functions. Is it possible to make a multicall function which is similar to multicall2 in solidity which can aggregate multiple view function calls?
I think there's no technical difference between @view and @external functions in Cairo, there's no enforcement of the state immutability for view functions, and both decorators expose them to outside calls where the Array of struct limitation lies. Therefore, I don't think this could be done.
I am referring to something like this https://github.com/argentlabs/argent-contracts-starknet/blob/main/contracts/Multicall.cairo