Tenderly / tenderly-cli

CLI tool for Smart Contract error tracking, monitoring and alerting.
https://tenderly.co
GNU General Public License v3.0
520 stars 137 forks source link

Unable to verify contracts via push or automatically #115

Open zlace0x opened 1 year ago

zlace0x commented 1 year ago

Trying to push my contracts after deployment, faced a few errors.

Tenderly Current CLI version: v1.4.7 Hardhat Version: 2.12.2 Compiler version: 0.8.17

➜  verify-test git:(main) ✗ tenderly push
Command "push" is deprecated, Use "tenderly contracts push"
Setting up your project...
Analyzing Hardhat configuration...
Couldn't read Hardhat config file

Used this temp fix for the above error: https://github.com/Tenderly/tenderly-cli/issues/108#issuecomment-1312219787

➜  verify-test git:(main) ✗ tenderly push
Command "push" is deprecated, Use "tenderly contracts push"
Setting up your project...
Analyzing Hardhat configuration...
Pushing Smart Contracts for project: project
We have detected the following Smart Contracts:
• Greeter
•  (not deployed to any network, will be used as a library contract)
Internal Server Error
Some of the project pushes were not successful. Please see the list above

Automatic verification also fails.

➜  verify-test git:(main) ✗ npx hardhat run script/deploy.ts --network goerli
You have both ethereum-waffle and @nomicfoundation/hardhat-chai-matchers installed. They don't work correctly together, so please make sure you only use one.

We recommend you migrate to @nomicfoundation/hardhat-chai-matchers. Learn how to do it here: https://hardhat.org/migrate-from-waffle
(node:46336) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
--> src/Greeter.sol

Compiled 3 Solidity files successfully
You have both ethereum-waffle and @nomicfoundation/hardhat-chai-matchers installed. They don't work correctly together, so please make sure you only use one.

We recommend you migrate to @nomicfoundation/hardhat-chai-matchers. Learn how to do it here: https://hardhat.org/migrate-from-waffle
(node:46345) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Unexpected error occurred. 
  Error reason 404 Not Found. 
  Error context: 404 page not found

Error in hardhat-tenderly: Verification failed. There was an error during the API request, please contact support with the above error.
{Greeter} deployed to 0x2E8719ffE56874730994a1f882acBF2ce77b122E

Sample repo:

https://github.com/zlace0x/verify-test

dule-git commented 1 year ago

Hello @zlace0x,

We have seen your other repo with reproduction steps and we are currently working on fixing this issue. We will get back to you as soon as we can. Thank you for your patience.