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.
When try
assets[0] = IAsset(OmniUSD)
I get an invalid opcode.
I would appreciate some clarity on what i am doing wrong