hashgraph / hedera-sourcify

Tools for verifying Hedera smart contracts using standard open source libraries.
Apache License 2.0
6 stars 7 forks source link

Feature flag for create2 verification support #50

Closed svienot closed 8 months ago

svienot commented 8 months ago

Description:

This brings changes in the ui and in the server:

acuarica commented 7 months ago

Is there a way to disable the related endpoints in the Swagger UI when SERVER_CREATE2_VERIFICATION if not enabled?

This is because otherwise these endpoints return 404 but with an HTML format instead of JSON. This in turn looks like a configuration error. For instance this is the response from the /verify/create2 endpoint

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /verify/create2</pre>
</body>
</html>

This is how it's seen in the Swagger API

image