naddison36 / sol2uml

Solidity contract visualisation tool
MIT License
1.15k stars 274 forks source link

Quick bugfix for `Compiler Version` replacement - remove space #106

Closed plotchy closed 2 years ago

plotchy commented 2 years ago

Noticed a minor issue after testing the new feature. It is creating invalid syntax, ex: pragma solidity = 0.8.4;

I believe the space after = should be removed here: https://github.com/naddison36/sol2uml/blob/a31033ed05a2d8502dfcb901ede95065af08db55/src/ts/parserEtherscan.ts#L157

let solidityCode = `pragma solidity =${solidityVersion};\n`
plotchy commented 2 years ago

I did a quick runthrough of your PR after seeing this behavior. I'm not familiar with TS so I could be missing the correct location for where this should be adjusted.

naddison36 commented 2 years ago

Sorry about that. I should have picked that up when I tested. Try v2.2.3