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
I have one specific function which compiles fine but when I try to deploy the contract which it is on with hardhat-deploy I get an Error: invalid bytecode . I do use libraries but these libraries are used in other contracts too without any problem
Manual:
Compile PositionManager contract with hardhat compile using 0.8.20 (solc-js)
No compilation error.
Try to deploy the PositionManager contract with hardhat-deploy
Get Error: invalid bytecode
Automatic:
Run npm run deploy:sepolia
The text was updated successfully, but these errors were encountered:
Found it. There was a library used in the BasePositionManager. Since this is a update attempt there was also an old version of that library with the same name present. Looks like hardhat or solc mixed that up. Since the library uses external functions I think the use as external library is intended. I just did not see (and still do not see) this in the old deploy scripts used for that contract.
Description
I have one specific function which compiles fine but when I try to deploy the contract which it is on with hardhat-deploy I get an Error: invalid bytecode . I do use libraries but these libraries are used in other contracts too without any problem
Environment
Steps to Reproduce
Manual:
Compile PositionManager contract with hardhat compile using 0.8.20 (solc-js)
No compilation error.
Try to deploy the PositionManager contract with hardhat-deploy
Get Error: invalid bytecode
Automatic:
Run npm run deploy:sepolia
The text was updated successfully, but these errors were encountered: