DeFiFoFum / hardhat-template

Solidity Smart Contract development template using modern Web3 frameworks/tools including Hardhat, Typechain and more.
GNU General Public License v3.0
1 stars 3 forks source link

Verification array values are not saved properly for use in terminal #10

Open DeFiFoFum opened 1 year ago

DeFiFoFum commented 1 year ago

When trying to verify contracts with the saved verification script from the deployment manager. Array values are not saved properly for use in terminal.

❯ npx hardhat verify --network bsc 0xB3437888A63924d67F6f7440c454e9fC72393B0c '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c' '0x0841BD0B734E4F5853f0dD8d7Ea041c241fb0Da6' '0x7Bc382DdC5928964D7af60e7e2f6299A1eA6F48d' '[0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56,0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d,0x55d398326f99059fF775485246999027B3197955]' '[0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c,0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56,0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d,0x55d398326f99059fF775485246999027B3197955]' '[0x0567f2323251f0aab15c8dfb1967e4e8a7d42aee,0xcbb98864ef56e9042e7d2efef76141f15731b82f,0x51597f405303c4377e36123cbc172b13269ea163,0xb97ad0e74fa7d920791e90258a6e2085088b4320]'
Nothing to compile
No need to generate any newer typings.
Error in plugin @nomiclabs/hardhat-etherscan: Value [0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56,0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d,0x55d398326f99059fF775485246999027B3197955] cannot be encoded for the parameter _stableUsdTokens.
Encoder error reason: expected array value

For more info run Hardhat with --show-stack-traces
DeFiFoFum commented 1 month ago

Generally the verification scripts have been working for me recently, but it seems that there are issues when passing complex data structures.