naddison36 / sol2uml

Solidity contract visualisation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick bugfix for `Compiler Version` replacement - remove space

plotchy opened this issue · comments

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:

let solidityCode = `pragma solidity = ${solidityVersion};\n`

let solidityCode = `pragma solidity =${solidityVersion};\n`

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.

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