hyperledger / solang

Solidity Compiler for Solana and Polkadot
https://solang.readthedocs.io/
Apache License 2.0
1.25k stars 208 forks source link

Fix recursive struct issue #1522

Closed LucasSte closed 11 months ago

LucasSte commented 11 months ago

Structs that contains themselves in a dynamic array are not recursive and do not have infinite size, as in the example below:

struct C {
    C [2][3][][2] m;
}
LucasSte commented 11 months ago

@xermicus I implemented the fix for Polkadot as well, but I could not write tests for it because I've hit a problem in ABI generation (#1520). Can you advise if I should maintain the changes I made in Polkadot or revert them?