hyperledger-web3j / web3j-solidity-gradle-plugin

Gradle plugin providing tasks to compile Solidity contracts.
Apache License 2.0
21 stars 25 forks source link

Cannot use the new EVM versions #52

Closed ertra closed 1 year ago

ertra commented 2 years ago

Cannot use new EVM versions

Hello,

I am trying to set up EVM to the latest version: London I use solc compiler on my machine

solidity {
    resolvePackages = false
    evmVersion = "LONDON"
    optimize = true
    optimizeRuns = 200
    version = "0.8.14"
    executable = "solc"
}

Error

I am getting en error

Cannot convert string value 'LONDON' to an enum value of type 'org.web3j.solidity.gradle.plugin.EVMVersion' (valid case insensitive values: HOMESTEAD, TANGERINE_WHISTLE, SPURIOUS_DRAGON, BYZANTIUM, CONSTANTINOPLE, PETERSBURG, ISTANBUL)

Please, would it be possible to update the code, so it will be able to use new EVMs?

or could you please advise a workaround?

thank you very much tomas

NickSneo commented 1 year ago

Fixed