blockscout icon indicating copy to clipboard operation
blockscout copied to clipboard

Celo: Cannot proceed verifying contracts - Internal Server Error

Open divine-comedian opened this issue 2 years ago • 5 comments
trafficstars

Describe your issue here. I am trying to verify a smart contract on the celo blockchain explorer. I try to upload the source files and the site just hangs and does not proceed or give any sort of confirmation. When I hover over one of my files I uploaded it says internal server error https://explorer.celo.org/mainnet/address/0x1a81c975d0e69206a45584BB98520f25dEEC7b6C/verify-via-metadata-json/new

image

Environment

  • Ubuntu 22.04
  • Brave Browser v1.50.118
  • Firefox 112.0 (64-bit)

Steps to reproduce

Tell us how to reproduce this issue. If possible, push up a branch to your fork with a regression test we can run to reproduce locally. Visit the explorer and navigate to unverified contract Go to Code Go to Verify & Public Verify by Source Upload flattened .sol contract sourcecode and metadata of contract in .json format Click Verify & Publish Nothing happens - See Internal Server Error on hover of uploaded files

Expected Behaviour

Tell us what should happen. I should see a confirmation or a more specific error if the verification process didn't work.

divine-comedian avatar Apr 14 '23 12:04 divine-comedian

Hey @divine-comedian, could you attach the files so we could debug? As a workaround, you could verify on https://sourcify.dev, the explorer pulls from there.

carterqw2 avatar Apr 14 '23 13:04 carterqw2

So fast! :zap:

Unfortunately Github doesn't let me upload .sol or .json files so here's a gist: https://gist.github.com/divine-comedian/b2cf14c1260ac42fa8d222c7177e47d8

divine-comedian avatar Apr 14 '23 13:04 divine-comedian

@carterqw2 I tried it also with sourcify and I cannot get it to work by any means.

One of the wormhole(portal) devs also tried via celo explorer and reported it broken as well.

divine-comedian avatar Apr 18 '23 14:04 divine-comedian

@divine-comedian Both Explorer and sourcify don't support verification via flattened sources. I used https://legacy.sourcify.dev/ in the past, if you have the separated files still, you could try it out.

carterqw2 avatar Apr 19 '23 09:04 carterqw2

@divine-comedian Both Explorer and sourcify don't support verification via flattened sources. I used https://legacy.sourcify.dev/ in the past, if you have the separated files still, you could try it out.

Do you have any estimate as to when the celo block explorer will be fixed? I just checked today and I still get a internal server error even when using non flattened contracts

image

divine-comedian avatar Apr 25 '23 15:04 divine-comedian