Skip to content

Commit

Permalink
Use EVM version "paris" when compiling contracts
Browse files Browse the repository at this point in the history
The updated version of Solidity (0.8.20+) comes with an additional
opcode (PUSH0) supported by the "shanghai" version of the EVM. Althea-L1
does not support this opcode and so we must specify an older version to
target. "paris" has been chosen since Althea-L1 is compatible as of the
merge.
  • Loading branch information
ChristianBorst committed Sep 1, 2023
1 parent 3ae1bdd commit d3ba52f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions solidity/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ module.exports = {
version: "0.8.21",
settings: {
optimizer: {
enabled: true
}
enabled: true,
},
evmVersion: "paris"
}
},
networks: {
Expand Down

0 comments on commit d3ba52f

Please sign in to comment.