ConsenSysMesh / solidity-parser

Solidity Parser in Javascript
138 stars 54 forks source link

inline assembly var. declaration without 'let' keyword fails in some cases #91

Closed duaraghav8 closed 6 years ago

duaraghav8 commented 7 years ago

Read issue here: https://github.com/duaraghav8/Solium/issues/95

tldr

assembly {
    f := foobar ()
    x := 0
    y := myVariable
}

Only the first statement inside assembly block gets parsed, the other 2 don't (but they do in solc)

I fixed it here: https://github.com/duaraghav8/solparse/commit/4b3c6e291928f72caaa549557c051943000a587a

Will make a PR if everything seems good to you