I am writing tests with Foundry and trying to populate a dynamic array.
When I try:
IAsset memory assets; uint256 memory maxAmountsIn; assets.push(OmniUSD);
I get an error saying
Member "push" is not available in contract IAsset memory outside of storage.
assets = IAsset(OmniUSD)
I get an invalid opcode.
I would appreciate some clarity on what i am doing wrong