Download solidity - How can you share a struct definition between contracts in ... book pdf free download link or read online here in PDF. Read online solidity - How can you share a struct definition between contracts in ... book pdf free download link book now. All books are in clear copy here, and all files are secure so don't worry about it. This site is like a library, you could find million book here by using search box in the header.
pragma solidity ^0.4.17; library SharedStructs { struct Thing { address[] people; } } contract A { SharedStructs.Thing thing; } contract B { SharedStructs.Thing thing; } Two important things to keep in mind: 1) the library gets deployed to the chain and then is referenced by its address, and 2) the library acts as a true pass-through, meaning msg.sender (and related values) refer to the ...
Read : solidity - How can you share a struct definition between contracts in ... pdf book online Select one of servers for direct link: |
---|