diff --git a/EIPS/eip-1470.md b/EIPS/eip-1470.md index c5ea013b..bda13e61 100644 --- a/EIPS/eip-1470.md +++ b/EIPS/eip-1470.md @@ -68,24 +68,37 @@ Test cases include crafted as well as real-world samples of vulnerable smart con 1. Source code of a smart contract sample; e.g. Solidity, Vyper, etc. 2. Compiled asset from an EVM compiler in machine readable format; e.g. JSON or ethPM. -3. Test result configuration that describes which and how many instances of a weakness variant can be found in a given sample. The YAML schema for the proposed test result configuration is listed below. +3. Test result configuration that describes which and how many instances of a weakness variant can be found in a given sample. The YAML schema for the proposed test case configuration is listed below. ```YAML -description: - type: string - required: true -issues: -- id: +title: SWC config +type: object +required: +- description +- issues +properties: + description: type: string - required: true - count: - type: number - required: true - locations: - - bytecode_offsets: - - type: number - line_numbers: - - type: number + issues: + title: Issues + type: array + items: + title: Issue + type: object + required: + - id + - count + properties: + id: + type: string + count: + type: number + locations: + items: + bytecode_offsets: + type: object + line_numbers: + type: object ``` ## Implementation