How I do I push the first value to this:
struct Balance {
address owner;
uint amount;
DeepBalance[] deepBalance;
}
struct DeepBalance{
address swap ;
uint amount ;
}
Balance[] balances;
this doesn't work, but is what I feel in the bottom of my heart is close:
DeepBalance[] memory deepBalance;
balances.push(Balance({
owner: 0,
amount: 0,
deepBalance: DeepBalance({
swap: 0,
amount: 0
})
}));