Skip to content

Commit

Permalink
Updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Oct 23, 2024
1 parent 594b800 commit ce791f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/Example.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ contract Example {
struct Struct {
bool a;
uint256 b;
uint16 c;
uint16 d;
uint64 c;

Check failure on line 8 in contracts/Example.sol

View workflow job for this annotation

GitHub Actions / check_storage_layout

Variable type diff

variable "(Example.Struct structOf[0]).c" was of type "uint16" but is now "uint64" (storage slot 0x178c34144aa4f22f9dcdc9a6606881972cf65c835163e066ef62f7c270683765, byte #0)

Check failure on line 8 in contracts/Example.sol

View workflow job for this annotation

GitHub Actions / check_storage_layout

Variable diff

variable "(Example.Struct structOf[0]).d" of type "uint16" was replaced by variable "(Example.Struct structOf[0]).c" of type "uint64" (storage slot 0x178c34144aa4f22f9dcdc9a6606881972cf65c835163e066ef62f7c270683765, byte #2)

Check failure on line 8 in contracts/Example.sol

View workflow job for this annotation

GitHub Actions / check_storage_layout

Variable diff

variable "(Example.Struct structOf[0]).e" of type "address" was replaced by variable "(Example.Struct structOf[0]).c" of type "uint64" (storage slot 0x178c34144aa4f22f9dcdc9a6606881972cf65c835163e066ef62f7c270683765, byte #4)
uint64 d;

Check failure on line 9 in contracts/Example.sol

View workflow job for this annotation

GitHub Actions / check_storage_layout

Variable diff

variable "(Example.Struct structOf[0]).e" of type "address" was replaced by variable "(Example.Struct structOf[0]).d" of type "uint64" (storage slot 0x178c34144aa4f22f9dcdc9a6606881972cf65c835163e066ef62f7c270683765, byte #8)
address e;
}

Expand All @@ -15,7 +15,7 @@ contract Example {

uint256[10] __gap;

address _owner;
address owner;

Check warning on line 18 in contracts/Example.sol

View workflow job for this annotation

GitHub Actions / check_storage_layout

Label diff

variable "_owner" was renamed to "owner". Is it intentional? (storage slot 0x000000000000000000000000000000000000000000000000000000000000000b, byte #0)

mapping(address => Struct[]) structOf;
}

0 comments on commit ce791f1

Please sign in to comment.