Add test contracts for storage layout

using structure types
pull/1535/head
webthethird 2 years ago
parent 4b315ff5ba
commit f8f71eca2b
  1. 8
      tests/check-upgradeability/contractV1_struct.sol
  2. 8
      tests/check-upgradeability/contractV2_struct.sol
  3. 8
      tests/check-upgradeability/contractV2_struct_bug.sol

@ -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;
}
Loading…
Cancel
Save