Open vasyl-ivanchuk opened 2 months ago
According to this GH discussion block explorer verification API doesn't return compilation errors returned by the verification service. Instead it returns a generic error which is not really helpful:
{ status: '0', message: 'NOTOK', result: 'Compilation error' }
Try to submit an invalid verification request which is supposed to fail with a compilation error.
Response contains information about the compilation error.
Response contains a generic compilation error message: Compilation error with no details.
Compilation error
Reported for Sepolia Explorer, but most probably behaves the same on all envs.
🐛 Bug Report
📝 Description
According to this GH discussion block explorer verification API doesn't return compilation errors returned by the verification service. Instead it returns a generic error which is not really helpful:
{ status: '0', message: 'NOTOK', result: 'Compilation error' }
🔄 Reproduction Steps
Try to submit an invalid verification request which is supposed to fail with a compilation error.
🤔 Expected Behavior
Response contains information about the compilation error.
😯 Current Behavior
Response contains a generic compilation error message:
Compilation error
with no details.🖥️ Environment
Reported for Sepolia Explorer, but most probably behaves the same on all envs.