You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team! In our company we use your plugin and it is great. However, we have a suggestion how it can be enhanced and this would improve our experience - currently we need to generate java files of smart contracts with multiple solidity versions (for test purposes) but in the plugin we can only specify one solidity version. It would be great if there is an option to configure multiple folders of contracts and each folder to be configured with different solidity version.
Example:
Folder structure:
solidity_0_8_8
Contract1
solidity_0_8_24
Contract2
As a result Contract1 will be generated with solidity 0.8.8 under some package with configurable name and Contract2 will be generated with solidity 0.8.24 under another package with configurable name.
This will be useful in cases when there are some breaking changes between the different solidity versions. For example, block.prevrandao in solidity is introduced in 0.8.18 version and on older versions the contract will not be compiled so in the example above it needs to be placed in the solidity_0_8_24 folder. Before solidity 0.8.18 its equivalent was block.difficulty so a contract that uses it needs to be placed in the solidity_0_8_8 folder.
The text was updated successfully, but these errors were encountered:
with solidity gradle plugin version 0.4.2, you can set different solidity versions, evmVersions, optimize flag, optimizeRuns and ignoreMissing flag values for different sourceSets -
Support of multiple solidity versions
Hi team! In our company we use your plugin and it is great. However, we have a suggestion how it can be enhanced and this would improve our experience - currently we need to generate java files of smart contracts with multiple solidity versions (for test purposes) but in the plugin we can only specify one solidity version. It would be great if there is an option to configure multiple folders of contracts and each folder to be configured with different solidity version.
Example:
Folder structure:
As a result Contract1 will be generated with solidity 0.8.8 under some package with configurable name and Contract2 will be generated with solidity 0.8.24 under another package with configurable name.
This will be useful in cases when there are some breaking changes between the different solidity versions. For example,
block.prevrandao
in solidity is introduced in 0.8.18 version and on older versions the contract will not be compiled so in the example above it needs to be placed in the solidity_0_8_24 folder. Before solidity 0.8.18 its equivalent wasblock.difficulty
so a contract that uses it needs to be placed in the solidity_0_8_8 folder.The text was updated successfully, but these errors were encountered: