mirror of https://github.com/crytic/slither
Merge pull request #1535 from webthethird/slither/dev-upgradeability-complex-datatype
slither-check-upgradeability: support complex datatypespull/1661/head
commit
1d52aeaf5c
@ -0,0 +1,8 @@ |
|||||||
|
contract ContractV1{ |
||||||
|
struct Foo { |
||||||
|
uint256 bar; |
||||||
|
address baz; |
||||||
|
} |
||||||
|
address destination; |
||||||
|
Foo foo; |
||||||
|
} |
@ -0,0 +1,8 @@ |
|||||||
|
contract ContractV2{ |
||||||
|
struct Foo { |
||||||
|
uint256 bar; |
||||||
|
address baz; |
||||||
|
} |
||||||
|
address destination; |
||||||
|
Foo foo; |
||||||
|
} |
@ -0,0 +1,8 @@ |
|||||||
|
contract ContractV2{ |
||||||
|
struct Foo { |
||||||
|
uint8 bar; |
||||||
|
address baz; |
||||||
|
} |
||||||
|
address destination; |
||||||
|
Foo foo; |
||||||
|
} |
@ -0,0 +1,7 @@ |
|||||||
|
INFO:Slither: |
||||||
|
Initializable contract not found, the contract does not follow a standard initalization schema. |
||||||
|
Reference: https://github.com/crytic/slither/wiki/Upgradeability-Checks#initializable-is-missing |
||||||
|
INFO:Slither: |
||||||
|
Initializable contract not found, the contract does not follow a standard initalization schema. |
||||||
|
Reference: https://github.com/crytic/slither/wiki/Upgradeability-Checks#initializable-is-missing |
||||||
|
INFO:Slither:2 findings, 21 detectors run |
@ -0,0 +1,12 @@ |
|||||||
|
INFO:Slither: |
||||||
|
Initializable contract not found, the contract does not follow a standard initalization schema. |
||||||
|
Reference: https://github.com/crytic/slither/wiki/Upgradeability-Checks#initializable-is-missing |
||||||
|
INFO:Slither: |
||||||
|
Different variables between ContractV1 (tests/check-upgradeability/contractV1_struct.sol#1-8) and ContractV2 (tests/check-upgradeability/contractV2_struct_bug.sol#1-8) |
||||||
|
ContractV1.foo (tests/check-upgradeability/contractV1_struct.sol#7) |
||||||
|
ContractV2.foo (tests/check-upgradeability/contractV2_struct_bug.sol#7) |
||||||
|
Reference: https://github.com/crytic/slither/wiki/Upgradeability-Checks#incorrect-variables-with-the-v2 |
||||||
|
INFO:Slither: |
||||||
|
Initializable contract not found, the contract does not follow a standard initalization schema. |
||||||
|
Reference: https://github.com/crytic/slither/wiki/Upgradeability-Checks#initializable-is-missing |
||||||
|
INFO:Slither:3 findings, 21 detectors run |
Loading…
Reference in new issue