hyperledger-solang / solang

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

Fix recursive struct issue #1522

Closed LucasSte closed 1 year ago

LucasSte commented 1 year 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 1 year 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?