Gerhard Wagner
1 min readApr 2, 2018

--

Actually regarding MyContract part2 does not throw an error. As you mentioned localArr is a storage reference and in this case it would point to storage slot zero. Storage variable count points there as well. If you would call localArr.push(101) than count will be 1 as storage slot zero holds the size of the dynamic array.

--

--

Gerhard Wagner
Gerhard Wagner

Written by Gerhard Wagner

Bounty Hunter @immunefi | Watson @sherlockdefi

Responses (1)