New answers tagged

1

I had to change quite a few things to get this code to compile, but the important piece you were missing is that public functions can't return storage references (because an external caller couldn't do anything with that), but internal (or private) functions can: pragma solidity 0.5.11; contract A { struct Prop { uint256 foo; // empty ...


Top 50 recent answers are included