hashgraph / hedera-sourcify

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

The Swagger UI example provided in the `/verify/create2` endpoint fails #89

Closed acuarica closed 1 month ago

acuarica commented 7 months ago

The default example provided in the Swagger UI for the /verify/create2 endpoint does not seem to have the proper schema. The field value should not appear. This is the default example provided

{
  "clientToken": "",
  "deployerAddress": "0x7dBA08Bdc233B28e2c99723c402Fc8F4e35AB55B",
  "salt": "0x00",
  "abiEncodedConstructorArguments": "00000000000000000000000006595656b93ce14834f0d22b7bbda4382d5ab51000000000000000000000000000000000000000000000000d8d726b7177a8000",
  "files": {
    "value": {
      "metadata.json": "{...}",
      "SimpleStorage.sol": "// file"
    }
  },
  "create2Address": "0x07880D44b0f7b75464ad18fc2b980049c40A8bc3"
}

The fields metadata.json and SimpleStorage.sol need to direct descendant of the files object, effectively removing the value field.

This is the response from the Swagger UI

image