mirror of
https://github.com/status-im/EIPs.git
synced 2025-01-26 23:00:38 +00:00
Automatically merged updates to draft EIP(s) 1470
Hi, I'm a bot! This change was automatically merged because: - It only modifies existing Draft or Last Call EIP(s) - The PR was approved or written by at least one author of each modified EIP - The build is passing
This commit is contained in:
parent
a97dc43493
commit
9ab3f596c2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user