tronprotocol / tron-box

TronBox - Simple development framework for tronweb
31 stars 29 forks source link

Will someone please explain this to me? #104

Closed thewhiterabbit closed 5 years ago

thewhiterabbit commented 5 years ago

Tron-box is not using the version of solidity compiler I have installed. Why? Screenshot_2019-05-07_08-04-24 Screenshot_2019-05-07_08-25-33

UPDATE: I see that the Solidity version is explicitly set in /packages/tron-solc/package.json. Will changing this to 0.5.8 actually change the compiler version, or no?

I have tried RTFM, to no avail... Screenshot_2019-05-07_10-28-58

UPDATE: Pull request submitted. If I have made an error in my thinking please tell me. I want to help. Can we add a command that will use the specified version like: tronbox compile --version 0.5.8?

sullof commented 5 years ago

Tron is not compatible with solcjs. TronBox uses a modified version of solc that is able to handle trc10 token, multisignatures, etc. and is fully compatible with the Tron TVM. Don't try to force it because, even if you can deploy a contract compiled with a different compiler, the execution of the contract itself can bring unpredictable (potentially unsafe) results.