(owner)
| 29 | ]; |
| 30 | |
| 31 | function contractOwnerHasKnownSource(owner) { |
| 32 | return String(owner ?? '') |
| 33 | .split(';') |
| 34 | .map(entry => entry.trim()) |
| 35 | .filter(Boolean) |
| 36 | .some(entry => SOURCE_OWNER_ROOTS.some(sourceRoot => ( |
| 37 | entry === sourceRoot |
| 38 | || entry.startsWith(`${sourceRoot}/`) |
| 39 | ))); |
| 40 | } |
| 41 | |
| 42 | function contractOwnerMatchesRoot(contract, sourceRoot) { |
| 43 | return String(contract.owner ?? '') |
no test coverage detected