unpackdev / solgo

Solidity parser in Go, designed to transform Solidity code into a structured format for enhanced analysis, particularly beneficial for developers using Go to analyze Solidity smart contracts.
https://unpack.dev
Apache License 2.0
1 stars 0 forks source link

[Bug] AST & IR - Function Call - Invalid Type Description & Argument Types - Referencing Corrupted #205

Closed 0x19 closed 4 months ago

0x19 commented 4 months ago

We can get panics because of expression type description is not fully discovered and after referencing is complated, type descriptions are not properly updated causing IR to panic when traversing through the arguments.

0x19 commented 4 months ago

Alright, finally it's resolved. Basically problematic that we had:

a.) Type description rebuilding was completely off when doing final reference declaration rebuilds. b.) And operator didn't had reference declaration type description rebuild at all.

0x19 commented 4 months ago

Closing this ticket as it's merged and resolved in #204