-
Which compiler are you using?
Which version of Solidity or Vyper?0.8.9 zksolc/zkvyper version?1.3.13 Explain the issueI can't compile Factory contract with zksolc while I can compile on other EVM chains.
Please help to see any block in your compiler. Link to your repo? |
Beta Was this translation helpful? Give feedback.
Answered by
uF4No
Aug 16, 2023
Replies: 1 comment 1 reply
-
hey @Zohar97 I've managed to get a more specific compiler error by using Solidity 0.8.20. Here is the output: $ /home/hedgar/src/contracts/FactoryElastic/node_modules/.bin/hardhat compile
Compiling contracts for zkSync Era with zksolc v1.3.13 and solc v0.8.20
Downloading solc 0.8.20
Compiling 1 Solidity file
An unexpected error occurred:
Error: Command failed: /home/hedgar/.cache/hardhat-nodejs/compilers-v2/zksolc/zksolc-v1.3.13 --standard-json --solc /home/hedgar/.cache/hardhat-nodejs/compilers-v2/linux-amd64/solc-linux-amd64-v0.8.20+commit.a1b79de6
Contract `contracts/Factory.sol:Factory` compiling error: The contract `contracts/Factory.sol:Factory` LLVM IR generator definition pass error: 951:17 The `EXTCODECOPY` instruction is not supportedThe contract `contracts/Factory.sol:Factory` LLVM IR generator definition pass error: 951:17 The `EXTCODECOPY` instruction is not supported
at ChildProcess.exithandler (node:child_process:419:12)
at ChildProcess.emit (node:events:514:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1091:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
code: 1,
killed: false,
signal: null,
cmd: '/home/hedgar/.cache/hardhat-nodejs/compilers-v2/zksolc/zksolc-v1.3.13 --standard-json --solc /home/hedgar/.cache/hardhat-nodejs/compilers-v2/linux-amd64/solc-linux-amd64-v0.8.20+commit.a1b79de6'
}
error Command failed with exit code 1. Looks like your contract is using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MexicanAce
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey @Zohar97
I've managed to get a more specific compiler error by using Solidity 0.8.20. Here is the output: