I am trying to verify my contracts via etherscan and hardhat. Everything seems fine with contracts without constructor arguments. I do it with
npx hardhat verify ${address} --network goerli
The problem is with one of my contracts that has bytes
argument in the constructor. I can't pass bytes in the command line. Hex strings like "\x01\x02\x03\x04" dont work either. Converted to chars doesn't work also.
Is there a way to write script that passes the arrayified variable as constructor argument?