matter-labs / block-explorer

zkSync Era Block Explorer
Apache License 2.0
127 stars 113 forks source link

bug: verification endpoint doesn't return compilation error details #289

Open vasyl-ivanchuk opened 2 months ago

vasyl-ivanchuk commented 2 months ago

🐛 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.